OFFSET
0,3
MATHEMATICA
trig[n_]:=n(n+1)/2; trigInv[x_]:=Ceiling[Sqrt[Max[0, 2x]]]; lim=100; nLst=Table[0, {trig[lim]}]; Do[n=trig[a]+trig[b]+trig[c]; If[n>0 && n<=trig[lim], nLst[[n]]++ ], {a, 0, lim}, {b, a, trigInv[trig[lim]-trig[a]]}, {c, b, trigInv[trig[lim]-trig[a]-trig[b]]}]; Flatten[Position[nLst, 1]] (T. D. Noe, Aug 10 2005)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Erich Friedman, Apr 24 2001
STATUS
approved