OFFSET
0,2
COMMENTS
LINKS
Eric Weisstein's World of Mathematics, Circle Lattice Points
EXAMPLE
16 is a term because 16 = 16*(1)^2.
912 is a term because 912 = 16*(5)^2 + (2*(16*(4)^2)).
41232 is a term because 41232 = 16*(25)^2 + (2*((16*(24)^2) + (16*(20)^2))).
PROG
(PARI) Tb(n) = {return(16 * n * n)}
llsum(n) = {my(x=0); for (i = 1, n - 2, for (ii = i+1, n - 1, if(n*n == (ii*ii) + (i*i), x+=(2 * Tb(ii))))); return(x)}
Tx(n) = {my(x=0); forprimestep(x = 5, n, 4, if(n%x==0, return(llsum(n))))}
Tn(n) = {for (i = 0, n, print1(Tb(i) + Tx(i), ", "))}
Tn(45)
CROSSREFS
KEYWORD
nonn
AUTHOR
Torlach Rush, Aug 08 2019
STATUS
approved