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!)
A104289 Number of primes between n*prime(n) and n*prime(n+1). 2
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Case n=1 is degenerate as 1*prime(1)=2, 1*prime(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.
LINKS
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 4*prime(4)=4*7=28 and 4*prime(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
Sequence in context: A021400 A059855 A082881 * A309697 A177435 A087272
KEYWORD
nonn
AUTHOR
Zak Seidov, Feb 28 2005
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 04:42 EDT 2024. Contains 371964 sequences. (Running on oeis4.)