login

Revision History for A104289

(Bold, blue-underlined text is an addition; faded, red-underlined text is a deletion.)

Showing all changes.
Number of primes between n*prime(n) and n*prime(n+1).
(history; published version)
#7 by Wesley Ivan Hurt at Wed Dec 27 13:53:36 EST 2023
STATUS

editing

approved

#6 by Wesley Ivan Hurt at Wed Dec 27 13:52:46 EST 2023
COMMENTS

Case n=1 is degenerate as 1*pprime(1)=2, 1*pprime(2)=3 and between 2 and 3 there is no prime while (PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]]/.n->1) gives 1.

EXAMPLE

a(4)=5 because between 4*pprime(4)=4*7=28 and 4*pprime(5)=4*11=44, there are exactly 5 primes: 29,31,37,41,43.

#5 by Wesley Ivan Hurt at Wed Dec 27 13:51:31 EST 2023
NAME

Number of primes between n*pprime(n) and n*pprime(n+1).

COMMENTS

Case n=1 is degenerate as 1p1*p(1)=2, 1p1*p(2)=3 and between 2 and 3 there is no prime while (PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]]/.n->1) gives 1.

FORMULA

a(n) = pi(n*prime(n+1)) - pi(n*prime(n)) for n > 1 with a(1) = 0. - Wesley Ivan Hurt, Dec 27 2023

EXAMPLE

a(4)=5 because between 4p4*p(4)=4*7=28 and 4p4*p(5)=4*11=44, there are exactly 5 primes: 29,31,37,41,43.

CROSSREFS
STATUS

approved

editing

#4 by Russ Cox at Fri Mar 30 17:26:11 EDT 2012
AUTHOR

_Zak Seidov (zakseidov(AT)yahoo.com), _, Feb 28 2005

Discussion
Fri Mar 30
17:26
OEIS Server: https://oeis.org/edit/global/139
#3 by N. J. A. Sloane at Fri Feb 27 03:00:00 EST 2009
COMMENTS

Case n=1 is degenerate as 1p(1)=2, 1p(2)=3, and between 2 and 3 there is no prime while (PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]]/.n->1)gives 1.

KEYWORD

nonn,new

nonn

#2 by N. J. A. Sloane at Fri Feb 24 03:00:00 EST 2006
MATHEMATICA

A104289=Prepend[Table[PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]], {n, 2, 100}], 0]

KEYWORD

nonn,new

nonn

#1 by N. J. A. Sloane at Sat Apr 09 03:00:00 EDT 2005
NAME

Number of primes between n*p(n) and n*p(n+1).

DATA

0, 1, 2, 5, 2, 5, 2, 6, 9, 2, 11, 8, 3, 9, 12, 14, 6, 13, 12, 9, 18, 11, 17, 23, 9, 7, 14, 8, 16, 52, 14, 23, 6, 40, 8, 26, 24, 22, 27, 26, 6, 45, 13, 19, 8, 63, 60, 21, 9, 18, 34, 13, 56, 35, 33, 36, 12, 37, 24, 13, 62, 81, 31, 16, 26, 97, 37, 67, 15, 24, 43, 59, 41, 47, 37, 44, 58

OFFSET

1,3

COMMENTS

Case n=1 is degenerate as 1p(1)=2, 1p(2)=3, and between 2 and 3 there is no prime while (PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]]/.n->1)gives 1.

EXAMPLE

a(4)=5 because between 4p(4)=4*7=28 and 4p(5)=4*11=44, there are exactly 5 primes: 29,31,37,41,43.

MATHEMATICA

A104289=Prepend[Table[PrimePi[n Prime[n+1]]-PrimePi[n Prime[n]], {n, 2, 100}], 0]

CROSSREFS

Cf. A102820.

KEYWORD

nonn

AUTHOR

Zak Seidov (zakseidov(AT)yahoo.com), Feb 28 2005

STATUS

approved