OFFSET
0,2
COMMENTS
a(n)/(n/2)^3->4/3*Pi
LINKS
Robert Israel, Table of n, a(n) for n = 0..2000
MAPLE
N:= 100: # to get a(0)..a(N)
B:= Array(0..N^2):
B[0]:= 1:
for x from 1 to N do
for y from 0 to x do
r:= x^2 + y^2;
if r > N^2 then break fi;
if y=0 or y=x then B[r]:= B[r]+4 else B[r]:= B[r]+8 fi
od od:
BL:= convert(B, list):
SL:= ListTools:-PartialSums(BL):
f:= n -> add(SL[floor((n^2+3)/4-x^2+x)], x=ceil(1/2-n/2)..n/2+1/2):
seq(f(n), n=0..N); # Robert Israel, Apr 09 2018
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Klaus Strassburger (strass(AT)ddfi.uni-duesseldorf.de), Jan 19 2000
STATUS
approved