$1^2 = 1$
$1^2 + 2^2 = 5$
$1^2 + 2^2 + 3^2 = 14$
$1^2 + 2^2 + 3^2 + 4^2 = 30$
$1^2 + 2^2 + 3^2 + 4^2 + ...... + n^2 = an^3 + bn^2 + (n/6)$
Work out the values of $a$ and $b$.
$1^2 = 1$
$1^2 + 2^2 = 5$
$1^2 + 2^2 + 3^2 = 14$
$1^2 + 2^2 + 3^2 + 4^2 = 30$
$1^2 + 2^2 + 3^2 + 4^2 + ...... + n^2 = an^3 + bn^2 + (n/6)$
Work out the values of $a$ and $b$.
$$\sum_{r=0}^nr^2=\frac{n(n+1)(2n+1)}{6}$$ now you can expand this
By one of the properties of sigma, the last equation can be expressed as $\frac{n(n+1)(2n+1)}{6}$.
This means that the sum of the squares of numbers from $1$ to $n$ can be expressed as $\frac{n(n+1)(2n+1)}{6}$.
Therefore, you just have to make it equal to that and work out the values of $a$ and $b$ by yourself.
To be more clear, you just need to let $an^3+bn^2+\frac{n}{6}= \frac{n(n+1)(2n+1)}{6}$ and solve for $n$.
http://mathforum.org/library/drmath/view/56920.html .
This shows you how the formula is achieved.
Sum of squares of first $n$ natural numbers is given by : $$ \Sigma_{r=1}^nr^2= \frac{n(n+1)(2n+1)}{6}$$ Expanding it: $$\frac13 n^3+\frac 12 n^2+\frac n6$$
So, $$a=\frac 13$$ and $$b=\frac 12$$