OFFSET
1,3
EXAMPLE
a(4)=10 since 10 can be expressed in 4 ways,
10=T(4)+0^2+0^2 = T(3)+0^2+2^2 = T(1)+0^2+3^2 = T(0)+1^2+3^2 and none of the numbers from 0 to 9 can be expressed in 4 ways.
MATHEMATICA
V = Table[0, {i, 5000}]; T[n]:=n(n+1)/2; Do[a = T[i]+j^2+k^2; If[a<5000, V[[a+1]]++ ], {i, 0, 100}, {j, 0, 71}, {k, 0, j}]; Table[Position[V, z][[1, 1]]-1, {z, 60}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Resta, Jan 19 2006
STATUS
approved