OFFSET
0,3
EXAMPLE
For n=2 there are 65 lattice points in Z^4 such that w^2+x^2+y^2+x^2 < 4
PROG
(Python)
for n in range (0, 51):
NumPoints=0
for w in range (-n, n+1):
for x in range (-n, n+1):
for y in range (-n, n+1):
for z in range (-n, n+1):
if w**2+x**2+y**2+z**2<n**2:
NumPoints+=1
print (n, NumPoints)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Brian J. Harrild, Sep 24 2018
STATUS
approved