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.

A084597 Largest k such that there are exactly n primes between k^2 and (k+1)^2.

Original entry on oeis.org

5, 9, 14, 17, 23, 26, 30, 42, 49, 55, 56, 80, 77, 72, 85, 84, 89, 119, 102, 118, 137, 136, 143, 140, 149, 156, 174, 178, 188, 184, 194, 200, 195, 207, 219, 198, 228, 247, 261, 263, 245, 249, 279, 297, 289, 327, 306, 310, 325, 335, 321, 290, 356, 344, 425, 365
Offset: 2

Views

Author

Harry J. Smith, May 31 2003

Keywords

Comments

a(n) is the index of last occurrence of n in A014085. This sequence relies on a heuristic calculation and there is no proof that it is correct. Conjecture: There is no k that has only one prime between k^2 and (k+1)^2.

Examples

			a(14)=77 because 14 is in sequence A014085 for the last time at item 77. There are 14 primes between 77^2 and 78^2.
		

References

  • P. Ribenboim, The Little Book of Big Primes. Springer-Verlag, 1991, p. 143.

Crossrefs

A333846 Numbers k such that the number of primes between k^2 and (k+1)^2 increases to a new record.

Original entry on oeis.org

0, 1, 4, 6, 10, 15, 16, 24, 31, 38, 45, 48, 52, 57, 70, 76, 79, 106, 111, 117, 123, 134, 139, 146, 154, 163, 169, 176, 179, 193, 202, 204, 223, 233, 238, 243, 256, 278, 284, 318, 326, 336, 359, 369, 412, 419, 430, 456, 458, 468, 479, 517, 550, 564, 595, 601, 612
Offset: 1

Views

Author

Bernard Schott, Apr 08 2020

Keywords

Comments

Legendre's conjecture (still open) states that for n > 0 there is always a prime between n^2 and (n+1)^2. The number of primes between n^2 and (n+1)^2 is equal to A014085(n), so, the corresponding records are given by A014085(a(n)) = 0, 2, 3, 4, 5, 6, 7, 9, 10, 12, 13, ... (A349996).
m = 25 is the smallest number such that there are exactly 8 primes between m^2 = 625 et (m+1)^2 = 676, namely {631, 641, 643, 647, 653, 659, 661, 673} but there are 9 primes between 24^2 = 576 et 25^2 = 625, namely {577, 587, 593, 599, 601, 607, 613, 617, 619} so 24 is a term but not 25; hence, 25 is the first term of A076957 that is not a record.
This sequence is infinite. Suppose for contradiction that a(n) = k was the last term, with s primes between k^2 and (k+1)^2. Then there are at most s primes between (k+1)^2 and (k+2)^2, at most s primes between (k+2)^2 and (k+3)^3, and at most s*sqrt(x) + pi(k^2) primes up to x. But there are ~ x/log x primes up to x by the Prime Number Theorem, a contradiction. This can be made sharp with various explicit estimates. - Charles R Greathouse IV, Apr 10 2020

Examples

			There are 7 primes between 16^2 and 17^2, i.e., 256 and 289, which are 257, 263, 269, 271, 277, 281, 283, and there does not exist k < 16 with 7 or more primes between k^2 and (k+1)^2, hence, 16 is in the sequence.
		

Crossrefs

Cf. A333241 (Similar records between k and (9/8)*k).

Programs

  • Mathematica
    primeCount[n_] := PrimePi[(n + 1)^2] - PrimePi[n^2]; pmax = -1; seq = {}; Do[p = primeCount[n]; If[p > pmax, pmax = p; AppendTo[seq, n]], {n, 0, 612}]; seq (* Amiram Eldar, Apr 08 2020 *)
  • PARI
    print1(pr=0,", ");pp=0;for(k=1,650,my(pc=primepi(k*k));if(pc-pp>pr,print1(k-1,", ");pr=pc-pp);pp=pc) \\ Hugo Pfoertner, Apr 10 2020

Extensions

More terms from Michel Marcus, Apr 08 2020

A076956 Smallest k^2 such that there are exactly n primes between k^2 and (k+1)^2.

Original entry on oeis.org

1, 16, 36, 100, 225, 256, 625, 576, 961, 1521, 1444, 2025, 4096, 2304, 2704, 3249, 5625, 6724, 6561, 4900, 5776, 6241, 11236, 12544, 21025, 12321, 14641, 13689, 15129, 17956, 20736, 19321, 21316, 23716, 26569, 36864, 28561, 30976, 32041
Offset: 2

Views

Author

Amarnath Murthy, Oct 20 2002

Keywords

Crossrefs

Formula

a(n) = A076957(n)^2. - David W. Wilson, Jan 08 2017

Extensions

More terms from Sascha Kurz, Jan 22 2003
Name edited by David W. Wilson, Jan 08 2017
Showing 1-3 of 3 results.