Find the rule and fill in the number 12 6 15 31 []]

Find the rule and fill in the number 12 6 15 31 []]

The first number = 1 ^ 2
The second number = 1 ^ 2 + 1 ^ 2
.
The sixth number = 1 ^ 2 + 1 ^ 2 + 2 ^ 2 + 3 ^ 2 + 4 ^ 2 + 5 ^ 2 = 56
The seventh number = 1 ^ 2 + 1 ^ 2 + 2 ^ 2 + 3 ^ 2 + 4 ^ 2 + 5 ^ 2 + 6 ^ 2 = 92