OFFSET
0,4
COMMENTS
EXAMPLE
a(5) = 3: [5, 0, 0], [4, 3, 0], and [4, 1, 4*sqrt(1/2)], because this is the minimal set of points whose cuboctahedral rotations and reflections comprise all of the points in a fcc lattice that intersect a sphere of radius 5 centered on a point in the lattice.
PROG
(PARI) a(n)={if(!n, return(1)); my(c=0); for(x=0, n, for(y=0, min(x, sqrtint(n^2-x^2)), for(o=0, 1, my(m=2*(n^2-(x+o/2)^2-(y+o/2)^2)); if(!issquare(m), next); my(z=sqrtint(m)); if(z>=0 && z%2==o, c+=if(y+o && (x-y==z || x+y+o==z), 2, 1))))); c/3}
CROSSREFS
KEYWORD
nonn
AUTHOR
Charles L. Hohn, Aug 22 2025
STATUS
approved
