The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A036705 Number of Gaussian integers z=a+bi satisfying n - 1/2 < |z| <= n + 1/2. 2
1, 8, 12, 16, 32, 28, 40, 40, 48, 68, 56, 72, 68, 88, 88, 84, 112, 112, 112, 116, 112, 144, 140, 144, 144, 168, 164, 160, 184, 172, 200, 192, 188, 208, 224, 224, 228, 224, 248, 236, 264, 248, 264, 276, 264, 288, 276, 304, 304, 312 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
COMMENTS
Number of integer Cartesian grid points covered by a ring around the origin with width 1 and outer radius n + 1/2. - Ralf Stephan, Nov 28 2013
LINKS
MATHEMATICA
a[n_] := If[n==0, 1, inf = (n-1/2)^2; sup = (n+1/2)^2; 4 Sum[Boole[inf < x^2 + y^2 < sup], {x, 0, n}, {y, 1, n}]];
a /@ Range[0, 49] (* Jean-François Alcover, Nov 14 2019 *)
PROG
(PARI) a(n)=sum(i=-n, n, sum(j=-n, n, d=sqrt(i*i+j*j); if(d>=n-1/2&&d<=n+1/2, 1))) \\ Ralf Stephan, Nov 28 2013
CROSSREFS
Sequence in context: A273800 A273798 A163283 * A129150 A361160 A331863
KEYWORD
nonn
AUTHOR
EXTENSIONS
Edited by Ralf Stephan, Nov 28 2013
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 03:04 EDT 2024. Contains 372497 sequences. (Running on oeis4.)