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-9 of 9 results.

A096840 a(n) = x is the least number such that around x^2 (the center) the number of primes is equal to n. The radius of neighborhood is ceiling(log(x^2)).

Original entry on oeis.org

1, 6, 3, 2, 14, 36, 117, 1652, 9582, 41361, 908637, 36284185
Offset: 0

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Examples

			n=9: a(9) = 41361, center = 1710732321, radius = 22; the nine primes in the zone are {1710732299, 1710732307, 1710732311, 1710732313, 1710732319, 1710732323, 1710732329, 1710732337, 1710732343}.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := (PrimePi[n^2 + Ceiling[ Log[n^2]]] - PrimePi[n^2 - Ceiling[ Log[n^2]] - 1]); t = Table[0, {15}]; Do[a = f[n]; If[a < 15 && t[[a + 1]] == 0, t[[a + 1]] = n], {n, 10^5}] (* Robert G. Wilson v, Jul 14 2004 *)

Extensions

Offset corrected and a(11) from Donovan Johnson, Jul 11 2010

A096839 Number of primes in the neighborhood of n^2 with radius ceiling(log(n^2)).

Original entry on oeis.org

0, 3, 2, 3, 2, 1, 2, 3, 2, 3, 0, 2, 3, 4, 3, 2, 2, 0, 2, 2, 2, 3, 1, 3, 2, 3, 2, 1, 1, 1, 1, 3, 3, 3, 4, 5, 3, 3, 1, 3, 0, 1, 1, 2, 3, 2, 3, 3, 2, 1, 2, 3, 2, 2, 2, 1, 3, 4, 0, 2, 2, 3, 1, 3, 4, 3, 3, 1, 1, 2, 1, 2, 2, 4, 1, 2, 2, 3, 1, 1, 3, 2, 1, 1, 2, 1, 3, 2, 2, 2, 3, 2, 2, 3, 1, 2, 3, 2, 3, 2, 2, 1, 3, 0, 1
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Examples

			n=10: a[10]=3 and the 3 primes in interval [95, 105] around 10^2=100 are {97,101,103}.
		

Crossrefs

Programs

  • Mathematica
    f[n_] := (PrimePi[n^2 + Ceiling[Log[n^2]]] - PrimePi[n^2 - Ceiling[Log[n^2]] - 1]); Table[ f[n], {n, 105}] (* Robert G. Wilson v, Jul 14 2004 *)

A096833 Values of n such that in the interval centered at A002110(n) = n-th primorial and of radius ceiling(log(center)) there is a single prime.

Original entry on oeis.org

4, 6, 11, 13, 24, 66, 68, 75, 167, 171, 172, 287, 310, 352, 384, 457, 564, 590, 616, 620, 643, 849, 1391, 1552, 1613, 1849, 2122, 2647, 2673, 4413
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Comments

Neighborhoods of most primorials (=center) are either empty or contain few primes. In the listed few cases a single prime arises if radius=ceiling(log(center)).

Examples

			n=6: around 30030 the prime in question is 30029.
		

Crossrefs

Extensions

More terms from David Wasserman, Nov 16 2007
Definition revised by N. J. A. Sloane, Dec 06 2014

A096832 Number of primes in enlarged neighborhood with center = n-th primorial and radius = 2*ceiling(log(n-th primorial)). So compared to A096831, the radius is doubled.

Original entry on oeis.org

2, 4, 4, 2, 3, 4, 1, 2, 1, 1, 1, 1, 3, 3, 1, 4, 2, 1, 4, 1, 2, 4, 1, 7, 1, 4, 2, 3, 0, 2, 3, 3, 0, 1, 6, 2, 1, 2, 4, 2, 3, 2, 2, 0, 3, 0, 2, 5, 3, 3, 1, 5, 2, 6, 3, 4, 3, 2, 2, 4, 2, 4, 1, 4, 7, 5, 2, 7, 1, 3, 2, 2, 6, 6, 3, 1, 3, 5, 4, 1, 4, 5, 6, 2, 5, 2, 4, 2, 0, 6, 1, 3, 5, 2, 5, 4, 4, 4, 3, 4, 3, 1, 3, 2, 4
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Comments

What is exceptional in such neighborhoods of primorials is that in most cases no primes occur, i.e., these zones are peculiarly poor or empty of primes! If the radius is doubled then the density of primes appears to be "normal".

Examples

			n=7: 7th primorial = 510510; for radius=14, no primes in the relevant neighborhood; for radius=28, then one prime appears: 510529.
		

Crossrefs

A096834 Singular primes mentioned in A096833 around the listed primorials.

Original entry on oeis.org

211, 30029, 200560490131, 304250263527209, 23768741896345550770650537601358309
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Comments

Neighborhoods of most primorials (=center) are either empty or poor of primes. The listed primes arise if center=A002110(A096833(n)), while radius=ceiling(log(center)).
The subsequent terms are too large to include: a(6) = A002110(66)-1, which has 131 digits. a(7) = A002110(68)-1, which has 136 digits. a(8) = A002110(75)+1, which has 154 digits. - David Wasserman, Nov 16 2007

Examples

			n=6: around 30030, the prime in question is 30029;
n=66: around A002110[66], the single prime has more than 121 decimal digits.
		

Crossrefs

A096835 Number of primes in the neighborhood of 3^n with radius ceiling(log(3^n)).

Original entry on oeis.org

3, 2, 3, 2, 2, 2, 1, 3, 2, 2, 0, 0, 1, 3, 3, 0, 2, 2, 2, 3, 2, 4, 1, 3, 3, 2, 3, 2, 1, 2, 2, 1, 0, 1, 2, 5, 2, 3, 0, 2, 4, 1, 0, 3, 3, 2, 2, 1, 3, 3, 2, 1, 2, 3, 2, 2, 5, 0, 3, 2, 2, 3, 4, 0, 1, 3, 0, 1, 4, 0, 2, 1, 1, 2, 3, 2, 3, 1, 2, 3, 3, 0, 0, 1, 2, 2, 2, 2, 2, 2, 5, 3, 0, 1, 6, 1, 4, 5, 1, 2, 3, 2, 1, 1, 2
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Crossrefs

Formula

a(n) equals almost A096509(3^n) >= a(n) because here only primes are counted, the true prime powers not.

A096836 Number of primes in the neighborhood of 10^n with radius ceiling(log(10^n)).

Original entry on oeis.org

3, 3, 1, 2, 3, 1, 1, 2, 3, 1, 3, 1, 1, 3, 1, 0, 7, 5, 1, 3, 0, 2, 2, 2, 1, 0, 0, 0, 2, 3, 3, 2, 4, 0, 2, 1, 3, 1, 5, 2, 0, 2, 4, 4, 2, 1, 3, 3, 3, 1, 0, 0, 0, 1, 2, 2, 1, 0, 1, 4, 4, 1, 2, 5, 2, 1, 4, 2, 3, 3, 2, 3, 3, 2, 1, 1, 2, 3, 1, 4, 4, 0, 4, 0, 2, 2, 0, 2, 3, 2, 6, 0, 3, 4, 4, 1, 1, 4, 0, 0, 4, 3, 3, 0, 3
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Examples

			a(5)=3 and the 3 primes in [99988,100012] are {99989,99991,100003}.
		

Crossrefs

Formula

a(n) equals almost A096509(10^n) >= a(n) because here only primes are counted, the true prime powers not.

A096837 Number of primes in the neighborhood of n^n with radius ceiling(log(n^n)).

Original entry on oeis.org

0, 3, 3, 2, 2, 2, 3, 2, 2, 1, 0, 1, 3, 3, 1, 2, 1, 0, 6, 1, 2, 2, 3, 1, 1, 3, 3, 1, 0, 3, 2, 4, 2, 2, 4, 3, 2, 1, 5, 1, 1, 2, 3, 1, 3, 0, 2, 1, 3, 2, 1, 0, 4, 1, 2, 2, 2, 2, 1, 0, 1, 3, 2, 1, 0, 0, 2, 1, 3, 1, 1, 2, 1, 0, 2, 3, 5, 3, 3, 0, 3, 2, 2, 4, 4, 0, 6, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 2, 1, 4, 1, 6, 0, 2, 1
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Examples

			a(3)=3 and the 3 primes in [23,31] are {23,29,31}.
		

Crossrefs

Formula

a(n) almost equals A096509(n^n) >= a(n) because here only primes are counted, the true prime powers not.

A096838 Number of primes in the neighborhood of prime(n), the n-th prime in the center with radius ceiling(log(prime(n))).

Original entry on oeis.org

2, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 2, 1, 2, 2, 2, 3, 2, 2, 2, 1, 2, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 2, 3, 4, 4, 3, 1, 3, 4, 4, 4, 3, 2, 2, 3, 3, 3, 3, 4, 3, 3, 1, 3, 4, 4, 3, 2, 2, 3, 3, 4, 2, 2, 3, 3, 3, 2, 2, 2, 1, 2, 2, 2, 3, 3, 3, 2, 3, 4, 4, 3, 1, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 3, 3, 3
Offset: 1

Views

Author

Labos Elemer, Jul 14 2004

Keywords

Examples

			a(100)=2 and the two primes in [534,548] are {541,547};
		

Crossrefs

Formula

a(n) almost equals A096509(prime(n)) >= a(n) because here only primes are counted, the true prime powers not.
For all n, a(n) >= 1.
Showing 1-9 of 9 results.