Can anyone explain to me how you would derive this equation? $$\sum_{i=0}^{N} i^{2} = \frac{2N^{3} + 3N^{2} + N}{6}$$
In my CS class, I was told that it can be derived as you would with the sum of N
$$\sum_{i=0}^{N} i = \frac{N(N + 1)}{2}$$
ex
1 2 3 ...... N
N N-1 N-2 ....1
---------------------
N+1 + N+1 + .... N+1 = N(N+1) SINCE THIS ADDITION IS 2 * THIS SUM THEN CLOSED FORM IS N(N+1)/ 2
The result is a polynomial of third degree $ak^3+bk^2+cx+d$. Collect four examples $k=1,2,3,4$, get the coefficients $a,b,c,d$ and use proof by induction.
Good luck,