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!)
A337788 The number of primes between n exclusive and n+primepi(n) inclusive. 6
0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 3, 3, 3, 3, 4, 3, 3, 3, 3, 3, 3, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3, 4, 4, 5, 5, 4, 4, 4, 4, 4, 4, 5, 5, 4, 4, 4, 5, 4, 4, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 4, 5, 5, 6, 6 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,9
COMMENTS
There is at least one prime number in the range of (n, n + primepi(n)], or a(n) >= 1, for n >= 2 (see Corollary 1 in the paper by Ya-Ping Lu attached in the links).
LINKS
FORMULA
a(n) = primepi(n + primepi(n)) - primepi(n)
a(n) = A000720(n + A000720(n)) - A000720(n)
a(n) = A000720(A095117(n)) - A000720(n)
PROG
(Python)
from sympy import primepi
for n in range(1, 101):
pi = primepi(n)
a = primepi(n + pi) - pi
print(a)
(PARI) a(n) = primepi(n+primepi(n)) - primepi(n); \\ Michel Marcus, Oct 27 2020
CROSSREFS
Sequence in context: A271824 A253589 A332992 * A346510 A023568 A081753
KEYWORD
nonn
AUTHOR
Ya-Ping Lu, Oct 27 2020
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 16:22 EDT 2024. Contains 371780 sequences. (Running on oeis4.)