Why is every positive integer the sum of at most 3 triangular numbers ?
-
2$\begingroup$ You mean at most 3 triangular numbers, I suppose? $\endgroup$– tosi3kNov 18, 2014 at 23:39
-
3$\begingroup$ I consider 0 a triangular number so ... $\endgroup$– mickNov 18, 2014 at 23:40
-
3$\begingroup$ No, the title is correct. "At most 3 triangular numbers" would mean that there is no integer which is the sum of 4 triangular numbers. $\endgroup$– DanielVNov 19, 2014 at 0:07
-
$\begingroup$ See Fermat's polygonal number theorem. $\endgroup$– LucianNov 19, 2014 at 4:14
-
$\begingroup$ @Lucian Fermat's polygonal number theorem is much more general and harder then the eureka theorem. Its related yes. But the proof of the polygonal requires the eureka and four squares I think. $\endgroup$– mickNov 19, 2014 at 22:35
1 Answer
Every positive integer $\equiv 3\mod{8}$ can be written as a sum of three squares; see here for a proof (in fact, more integers than just those can be so written).
The result about triangular numbers follows from that result: let $n>0$; then $8n+3$ is a sum of three squares. From congruence conditions modulo $4$, it follows that each square is odd, so that $$ 8n+3 = (2x+1)^2 + (2y+1)^2 + (2z+1)^2 = 4x^2 + 4x + 4y^2 + 4y + 4z^2 + 4z + 3,$$ so that $$ 8n = 4x(x+1) + 4y(y+1) + 4z(z+1).$$ The result follows upon dividing through by $8$.
-
1$\begingroup$ there is a trick due to Aubry, about 1912, that proves that the sum of three squares integrally represents any integer that it rationally represents. This is in Serre's little book. $\endgroup$ Nov 19, 2014 at 3:00
-
$\begingroup$ @WillJagy Yes, I've seen that. Looking at that book again, he goes on to give essentially the proof above for triangular numbers as well. But that observation does not simplify the three squares proof, unless I'm missing something. $\endgroup$– rogerlNov 19, 2014 at 15:43
-
$\begingroup$ In that paper I see on page 3 : (14) If p/q, then (5), (-m/p) = l. Im confused about that step. Plz explain. Thank you. $\endgroup$– mickNov 19, 2014 at 22:37
-
1$\begingroup$ @mick Equation (5), if $p\mid q$, says that $-m$ is a square mod $p$, which is $\left(\frac{-m}{p}\right) = 1$. $\endgroup$– rogerlNov 19, 2014 at 22:52
-