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!)
A217564 Number of primes between prime(n)/2 and prime(n+1)/2. 6
0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, 0, 1, 0, 2, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 2, 2, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 2, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,30
COMMENTS
Conjecture: this sequence is unbounded, as implied by Dickson's conjecture. - Charles R Greathouse IV, Oct 09 2012
Conjecture: 0 appears infinitely often. - Jon Perry, Oct 10 2012
First differences of A079952. - Peter Munn, Oct 19 2017
LINKS
FORMULA
a(n) = pi(prime(n + 1)/2) - pi(prime(n)/2), where pi is the prime counting function and prime(n) is the n-th prime.
Equivalently, a(n) = A079952(n+1) - A079952(n). - Peter Munn, Oct 19 2017
The average order of a(n) is 1/2, that is, a(1) + a(2) + ... + a(n) ~ n/2. - Charles R Greathouse IV, Oct 09 2012
EXAMPLE
a(30) = 2 because there are two primes between prime(30)/2 [=113/2] and prime(31)/2 [=127/2]; i.e., the numbers 59 and 61.
MATHEMATICA
q = 2; Table[p = q; q = NextPrime[p]; Length[Position[PrimeQ[Range[p + 1, q - 1, 2]/2], True]], {105}]
Table[PrimePi[Prime[n + 1]/2] - PrimePi[Prime[n]/2], {n, 105}] (* Alonso del Arte, Oct 08 2012 *)
CROSSREFS
Cf. A215237 (location of first n).
A164368 lists the prime(n) corresponding to the zero terms.
Sequence in context: A321375 A352555 A307831 * A325200 A266909 A276491
KEYWORD
nonn
AUTHOR
Hans Havermann, Oct 06 2012
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 18 06:24 EDT 2024. Contains 371769 sequences. (Running on oeis4.)