My teacher wrote the following identity out of the blue for finding out the sum of squares of first n natural numbers:
$r^3 - (r - 1)^3 = 3r^2 - 3r + 1$
Then, the value of r was substituted for 1, 2, 3, 4,..., n respectively.
There were n number of identities as follows:
$1^3-0^3=3*1^2-3*1+1$
$2^3-1^3=3*2^2-3*2+1$
.
.
.
$n^3-(n-1)^3=3n^2-3n+1$
All of the identities were added to obtain
$n^3=3(1^2+2^2+3^2+. . . +n^2)-3(1+2+3+...+n)+n$
=>$n^3=3S$n$-3n(n+1)/{2}+n$
And lastly, the above identity was solved for Sn
My question: Why was the first identity in r chosen? Are there other identities which can be chosen?