cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-3 of 3 results.

A354842 a(n) is the smallest number k such that A354841(k) = n.

Original entry on oeis.org

1, 4, 28, 1276, 9430, 463446, 24786396, 1340301868
Offset: 0

Views

Author

Bernard Schott, Jun 24 2022

Keywords

Comments

Equivalently, the smallest integer k such that the number of primes between k and k+log(k), exclusive, is n.

Examples

			In the interval ]28; 28+log(28)[ = ]28; 31.332...[, there are two primes 29 and 31 and this is the first such interval with 2 primes, hence a(2) = 28.
		

Crossrefs

Cf. A354840 (similar, but between k and k+log(k)^2), A354841.

Programs

Extensions

a(3)-a(5) from Alois P. Heinz, Jun 25 2022
a(6) from Amiram Eldar, Jun 25 2022
a(7) from David Consiglio, Jr., Jun 29 2022

A365573 Number of primes between prime(n) and prime(n)+log(prime(n)), exclusive.

Original entry on oeis.org

0, 0, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 2, 2, 1, 0, 0, 1, 0, 1
Offset: 1

Views

Author

Alain Rocchelli, Sep 09 2023

Keywords

Comments

Inspired by A354841.

Crossrefs

Programs

  • PARI
    a(n) = primepi(prime(n)+log(prime(n))) - primepi(prime(n))

Formula

Conjecture: Limit_{N->oo} (Ratio_{n=1..N} a(n)=0) = 1/e (A068985).

A366134 Number of primes between prime(n) and prime(n)+2*log(prime(n)), exclusive.

Original entry on oeis.org

1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 1, 2, 2, 1, 1, 1, 1, 2, 3, 2, 2, 1, 0, 1, 2, 1, 0, 2, 1, 2, 2, 1, 2, 1, 1, 3, 2, 1, 0, 0, 3, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 0, 3, 2, 1, 0, 1, 1, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 3, 2, 2, 1, 2, 3, 2, 1, 1, 2, 2, 2, 2
Offset: 1

Views

Author

Alain Rocchelli, Sep 30 2023

Keywords

Comments

Inspired by A365573.

Crossrefs

Programs

  • Mathematica
    a[n_]:=PrimePi[Prime[n]+2Log[Prime[n]]]-PrimePi[Prime[n]]; Array[a,95] (* Stefano Spezia, Sep 30 2023 *)
  • PARI
    a(n) = primepi(prime(n)+2*log(prime(n))) - primepi(prime(n))

Formula

Conjecture: Limit_{N->oo} (Ratio_{n=1..N} a(n)=0) = 1/e^2 (A092553).
Showing 1-3 of 3 results.