When is sum of squares a perfect square?

83 Views Asked by At

Recall that $$\sum_{j=1}^nj^2=\frac{n(n+1)(2n+1)}{6}.$$ When is this quantity a perfect square? It appears that the only solutions are $n=0,1,24.$ By setting $x=12n+6$, the problem reduces to finding rational points on the elliptic curve $$ y^2=x(x+6)(x-6), $$ but I do not know where to go from here. How can I show that these are the only solutions?