I read in "Letters to a young mathematician" that 4900 is the only square integer that is the sum of consecutive squares (I believe he meant by that "starting from 1", but maybe that's not even necessary). I did a quick run through with a python script and of course this seems totally devoid of a computational pattern. Why is 4900 (and 1 of course) the only number such that this works?

I did find out that the sum of squares is the following...

$\sum^{n}_{i=1} i^2 = \frac{n(n+1)(2n+1)}{6}$