OFFSET
0,3
COMMENTS
Points in Z^4 with even sum of entries forms the D_4 lattice. That is to say, the sequence is the "ball" pattern on D_4 lattice.
a(n) == 1 (mod 24).
LINKS
Steven Lu, Python program
EXAMPLE
a(2) = 49, because in the ball with radius 2, there is 1 point (0,0,0,0), 8 points similar to (0,0,0,2), 24 points similar to (0,0,1,1), and 16 points similar to (1,1,1,1).
PROG
(Python) # See Steven Lu's link
(PARI) a(n) = sum(x=-n, n, sum(y=-n, n, sum(z=-n, n, sum(t=-n, n, (((x+y+z+t) % 2)==0) && (x^2+y^2+z^2+t^2 <=n^2))))); \\ Michel Marcus, Feb 09 2025
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Steven Lu, Feb 05 2025
STATUS
approved