MathOverflow is a question and answer site for professional mathematicians. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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}$

share|cite|improve this question
What is the question? – Jonas Meyer May 31 '10 at 8:15
Jonas, you could just put that as the answer, that'll get me where I need to be. The CannonballProblem link doesn't help unless you have the papers. – Michael Hoffman May 31 '10 at 8:36
It seems no one has picked up on the question of whether "starting from 1" is necessary. Of course, it is; trivially, every square integer is the sum of (one) consecutive square(s). Slightly less trivially, $5^2=3^2+4^2$, $29^2=20^2+21^2$ (the first two members of an infinite sequence of examples obtainable via Pell). There's also $38^2+39^2+\dots+48^2=143^2$, again the first in an infinite sequence of square sums of 11 consecutive squares, and many, many more. – Gerry Myerson Jun 30 '10 at 2:55
up vote 14 down vote accepted

This is a classical Diophantine equation (Mordell, Diophantine Equations, p. 258). Apart from n = 0, 1, -1, there is only the solution n = 24. Proofs by G. N. Watson (1919), W. Ljunggren (1952).

There is some history in .

share|cite|improve this answer

I remember vaguely that the equation $1^2+\dots+24^2=70^2$ gives a construction of the Leech lattice (one has to consider one of the two even neighbours of the lattice $\mathbb Z \frac{w}{70}+\Lambda'$ where $w=(1,2,\dots,24)$ and $\Lambda'=\lbrace z\in\mathbb Z^{24}|\langle z,w\rangle\in70\mathbb Z\rbrace$) which is a rather unique and exceptional structure.

share|cite|improve this answer
See for an outline of this construction; it uses the vector $(0,1,2,\ldots,24,70)$ in the Lorentzian even unimodular lattice of rank 26 and signature 24. – Robin Chapman May 31 '10 at 13:17
John Baez also has a couple of articles about the number 24 and the Leech lattice in his excellent expository articles - and – Dinesh May 31 '10 at 16:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.