A309573 a(n) is the sum of lattice points enumerated by the square number spiral falling on the circumference of circles centered at the origin of radii n.
0, 16, 64, 144, 256, 912, 576, 784, 1024, 1296, 3648, 1936, 2304, 7312, 3136, 8208, 4096, 11824, 5184, 5776, 14592, 7056, 7744, 8464, 9216, 41232, 29248, 11664, 12544, 27568, 32832, 15376, 16384, 17424, 47296, 44688, 20736, 61104, 23104, 65808, 58368, 78096, 28224, 29584, 30976, 73872
Offset: 0
Keywords
Examples
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))).
Links
- Eric Weisstein's World of Mathematics, Circle Lattice Points
Programs
-
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)
Comments