I'm new and this is my first question (though I've been lurking). English is not my native language. Studying on my own.
I'm really interested in deriving the formula $1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = \frac{n(n+1)(2n+1)}{6}$ using only the following:
Given: for $n$, $a$, $b$, $c$, $z$, $y$ positive integers
$1 + 2 + 3 + \cdots + n = \frac{n(n+1)}{2}$ $ a^2 + b^2 + c^2 \cdots+ z^2 =(a + b + \cdots + z)^2 - 2ab - 2ac - \cdots - 2az - 2bc - \cdots -2bz - \cdots - 2$zy
I could write
$$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2(1\cdot2) - 2(1\cdot3) - \cdots- 2(1\cdot n) - 2(2\cdot3) - \cdots - 2(2\cdot n) - \cdots -2(n-1)(n)$$
And then notice that:
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[1(2 + 3 + \cdots+n)] - 2[2(3 + 4 + \cdots+ n)] - \cdots -2[(n-1)(n)]$
Which is
$1^{2} + 2^{2} + 3^{2} + \cdots n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[\frac{n(n+1)}{2} -1] - 2[\frac{2n(n+1)}{2} - (1 +2)] -\cdots -2[\frac{(n-1)n(n+1)}{2} - (1 +2 + \cdots+n -1)]$
Simplifying to
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[(1 + 2 +\cdots+ n-1)\frac{n(n+1)}{2} - 1(n-1) -2(n-2) - \cdots - (n-1)1]$
Edit (29/01): thought about it
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[(1 + 2 +\cdots+ n-1)\frac{n(n+1)}{2} - 2(1 + 2 +\cdots n-1)]$
And then
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[(\frac{(n-1)n}{2})(\frac{n(n+1)}{2}) - \frac{2n(n-1)}{2}]$
So
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n(n+1)}{2}]^{2} - 2[\frac{n^{2}(n^{2}-1)}{2} - \frac{2n(n-1)}{2}]$
Then
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = [\frac{n^{2}(n^{2}+2n+1)}{4}] - 4[\frac{n^{4}-3n^{2}-2n}{4}]$
But now
$1^{2} + 2^{2} + 3^{2} + \cdots+ n^{2} = \frac{n(-3n^{3}+2n^{2}-11n-2)}{4}$
Ok, now I know it's messed up, but still can't figure why