OFFSET
0,6
COMMENTS
Fermat asserted that every number is the sum of three triangular numbers. This was proved by Gauss, who recorded in his Tagebuch entry for Jul 10 1796 that: EYPHEKA! num = DELTA + DELTA + DELTA.
REFERENCES
Mel Nathanson, Additive Number Theory: The Classical Bases, Graduate Texts in Mathematics, Volume 165, Springer-Verlag, 1996. See Chapter 1.
LINKS
T. D. Noe, Table of n, a(n) for n=0..5050
FORMULA
G.f.: ( Sum_{k>=1} x^(k*(k+1)/2) )^3. - Ilya Gutkovskiy, Dec 24 2016
MATHEMATICA
nmax = 100; m0 = 10; A053604 :=
Table[a[n], {n, 0, nmax}]; Clear[counts];
counts[m_] :=
counts[m] = (Clear[a]; a[_] = 0;
Do[s = i*(i + 1)/2 + j*(j + 1)/2 + k*(k + 1)/2;
a[s] = a[s] + 1, {i, 1, m}, {j, 1, m}, {k, 1, m}];
A053603); counts[m = m0]; counts[m = 2*m]; While[
counts[m] != counts[m/2], m = 2*m]; A053604 (* G. C. Greubel, Dec 24 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 20 2000
STATUS
approved