eguruchela

Sum of consecutive Squares calculator



Calculate the sum of first n squares or the sum of consecutive square numbers from n12 to n22 .

A square number (or a square) is a number you can write as a product of two equal factors of natural numbers.

The sum of consecutive square numbers from n12 to n22 is equal to:

n12 + (n1 + 1)2 + ... + n22

Formula:

Sum of consecutive squares = n(n + 1)(2n + 1)/6

Examples

let's understand the simple method to calculate the Sum of consecutive squares for given value as follows:

for example we input these value 5 it means we wants the sum of 12,22,32,42, and 52

= 1x1 + 2x2 + 3x3 + 4x4 + 5x5

= 1 + 4 + 9 + 16 + 25

= 55

now calculate the same example using following formula:

Sum of consecutive squares = n(n + 1)(2n + 1)/6

= 5(5 + 1)(2x5 + 1)/6

= (5x6)(11)/6

= 5x6x11/6

= 5x11

= 55