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!)
A192391 Numbers k such that the number of primes in the open interval (k^2 - k, k^2) is equal to the number of primes in the open interval (k^2, k^2 + k). 1
1, 2, 3, 5, 8, 9, 12, 13, 14, 20, 21, 24, 26, 28, 30, 32, 34, 35, 38, 39, 46, 48, 51, 53, 55, 60, 67, 72, 74, 83, 85, 94, 102, 107, 111, 135, 154, 161, 162, 192, 200, 206, 221, 237, 254, 258, 277, 280, 283, 288, 301, 314 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(1)=1 because there are no primes in the interval (1^2-1, 1^2) = (0, 1) and no primes in the interval (1^2, 1^2+1) = (1, 2).
a(2)=2 because there is 1 prime in the interval (2^2-2, 2^2) = (2, 4) and one prime in the interval (2^2, 2^2+2) = (4, 6).
MAPLE
isA192391 := proc(n) numtheory[pi](n^2-1)-numtheory[pi](n^2-n) = numtheory[pi](n^2+n-1)-numtheory[pi](n^2-1) ; end proc:
for n from 1 to 600 do if isA192391(n) then printf("%d, ", n); end if; end do: # R. J. Mathar, Jul 08 2011
MATHEMATICA
Select[Range[500], PrimePi[#^2] - PrimePi[#^2 - #] == PrimePi[#^2 + #] - PrimePi[#^2] &] (* Alonso del Arte, Jun 29 2011 *)
CROSSREFS
Cf. A000040.
Sequence in context: A256722 A364926 A363097 * A013634 A133484 A181155
KEYWORD
nonn
AUTHOR
EXTENSIONS
32 inserted and a few terms beyond 51 added by Alonso del Arte, Jun 29 2011
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 April 25 10:34 EDT 2024. Contains 371967 sequences. (Running on oeis4.)