OFFSET
0,2
FORMULA
G.f.: (1/(1 - x))*(Sum_{k>=0} x^(k^2))^4. - Ilya Gutkovskiy, Mar 14 2017
MATHEMATICA
nn = 50; t = Table[0, {nn}]; Do[d = x^2 + y^2 + z^2 + u^2; If[0 < d <= nn, t[[d]]++], {x, 0, nn}, {y, 0, nn}, {z, 0, nn}, {u, 0, nn}]; Accumulate[Join[{1}, t]] (* T. D. Noe, Apr 01 2013 *)
PROG
(Python)
for n in range(99):
k = 0
for x in range(99):
s = x*x
if s>n: break
for y in range(99):
sy = s + y*y
if sy>n: break
for z in range(99):
sz = sy + z*z
if sz>n: break
for u in range(99):
su = sz + u*u
if su>n: break
k+=1
print(str(k), end=', ')
CROSSREFS
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Apr 01 2013
STATUS
approved