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!)
A038377 Number of odd nonprimes <= (2n+1)^2. 1

%I #10 Nov 21 2013 12:46:44

%S 1,2,5,11,20,32,47,66,85,110,137,167,200,237,276,320,365,414,467,522,

%T 579,643,708,777,845,924,997,1080,1169,1255,1343,1437,1536,1637,1741,

%U 1847,1961,2075,2187,2311,2435,2560,2691,2826,2962,3104,3249,3393,3543

%N Number of odd nonprimes <= (2n+1)^2.

%F For n>=1, a(n) = 2n^2+2n+2-PrimePi[(2n+1)^2] = A051890(n)-A000720((2n+1)^2). - _Zak Seidov_, Mar 03 2008

%t nn=20001; With[{onps=Complement[Range[1,nn,2],Prime[Range[PrimePi[nn+1]]]]}, Table[Count[onps,_?(#<=(2n+1)^2&)],{n,0,60}]] (* _Harvey P. Dale_, Apr 13 2011 *)

%Y A037040(n) + 1.

%Y Cf. A000720, A051890.

%K nonn

%O 1,2

%A _N. J. A. Sloane_ and _Erich Friedman_

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 April 25 10:42 EDT 2024. Contains 371967 sequences. (Running on oeis4.)