The formula for the sum of squares of first n natural numbers is given by:
1^2+2^2+3^2+..........+n^2 = n(n+1)(2n+1)/6, ................ eqn(1)
and as far as the proof is concerned, it can be proved by using the concept of mathematical induction as follows:-
Let n= 1, therefore L.H.S of the above expression becomes
1^2 = 1
and R.H.S becomes
1(1+1)(2x1+1)/6
=6/6
=1
Hence the result is true for n=1.
Let us suppose that the result is true for n=k,i.e.
1^2+2^2+3^2+..........+k^2 = k(k+1)(2k+1)/6
Let us prove the result for n=k+1.
If we put n = k+1 on the L.H.S of the eqn (1) then it becomes
1^2+2^2+3^2+..........+k^2+(k+1)^2
=k(k+1)(2k+1)/6 + (k+1)^2
=(k+1){k(2k+1)/6 +(k+1)}
=(k+1)[{k(2k+1)+6(k+1)}/6]
=(k+1)[{2(k)^2+k+6k+6}/6]
=(k+1){2(k)^2+7k+6}/6
Now let us put n=k+1 on the R.H.S of eqn (1),we have
(k+1)((k+1)+1)(2(k+1)+1)
=(k+1)(k+2)(2k+3)
=(k+1){2(k)^2+7k+6}/6
Hence L.H.S = R.H.S,
Hence the result is true for n=k+1 whenever it is true for n=k.
Thus it is true for all n.
I hope this will help you in clarifying your doubts.
For more details on other topics like probability check out my link
http://mysteriousmathematicssimplified.blogspot.com/