Sum of the Square of the First n Natural Numbers

Sum of the Squares of the First n Natural Numbers is given by,

1^{2}+2^{2}+......+n^{2}=\frac{n(n+1)(2n+1)}{6}

i.e,  

Calculate the sum of the squares of the n natural numbers

Formula : 12 + 22 +...+ n2 = n(n + 1)(2n + 1)/6

Input

Reset

Output

Result {{result}}
Posted on by