cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A036705 Number of Gaussian integers z=a+bi satisfying n - 1/2 < |z| <= n + 1/2.

This page as a plain text file.
%I A036705 #21 Nov 14 2019 05:29:46
%S A036705 1,8,12,16,32,28,40,40,48,68,56,72,68,88,88,84,112,112,112,116,112,
%T A036705 144,140,144,144,168,164,160,184,172,200,192,188,208,224,224,228,224,
%U A036705 248,236,264,248,264,276,264,288,276,304,304,312
%N A036705 Number of Gaussian integers z=a+bi satisfying n - 1/2 < |z| <= n + 1/2.
%C A036705 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
%H A036705 <a href="/index/Ga#gaussians">Index entries for Gaussian integers and primes</a>
%t A036705 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}]];
%t A036705 a /@ Range[0, 49] (* _Jean-François Alcover_, Nov 14 2019 *)
%o A036705 (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
%Y A036705 Cf. A047077, A232705.
%K A036705 nonn
%O A036705 0,2
%A A036705 _Clark Kimberling_
%E A036705 Edited by _Ralf Stephan_, Nov 28 2013