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.

A247600 Least positive integer m with pi(m*n) = m + n, where pi(x) denotes the number of primes not exceeding x.

Original entry on oeis.org

9, 7, 6, 998, 5, 5, 5, 5, 5, 5, 636787, 1617099, 4124188, 10553076, 5, 5, 179992154, 465769460, 1208198239, 3140421185, 5, 5, 5, 145935688930, 5, 5, 5, 5, 5, 5, 5, 5, 5
Offset: 5

Views

Author

Zhi-Wei Sun, Sep 21 2014

Keywords

Comments

The author proved that a(n) exists for every n >= 5.
a(39) = a(41) = 5. - Chai Wah Wu, Jun 06 2024

Examples

			a(5) = 9 since pi(5*9) = 14 = 5 + 9, and pi(5*m) = 5 + m for no m < 9.
		

Crossrefs

Programs

  • Mathematica
    Do[m=1;Label[aa];If[PrimePi[n*m]==m+n,Print[n," ",m];Goto[bb]];m=m+1;Goto[aa];Label[bb];Continue,{n,5,21}]
    Table[m = 1; While[PrimePi[m*n] != m + n, m++]; m, {n, 5, 14}] (* Robert Price, Mar 20 2019 *)

Extensions

a(22)-a(37) from Chai Wah Wu, May 03 2018

A281196 Number of n such that A247600(n) = 5.

Original entry on oeis.org

9, 10, 11, 12, 13, 14, 19, 20, 25, 26, 27, 29, 30, 31, 32, 33, 34, 35, 36, 37, 39, 41
Offset: 1

Views

Author

Seiichi Manyama, Jan 17 2017

Keywords

Comments

Conjecture: This sequence has just 22 terms shown.
Sequence is finite and complete. Since pi(x) < 1.25506*x/log(x), it follows that for x > 106, pi(5*x) < x + 5. - Chai Wah Wu, May 01 2018, May 14 2020.

Examples

			9 is a term since pi(5*9) = 14 = 9 + 5, and pi(m*9) = 9 + m for no m < 5.
		

Crossrefs

Formula

pi(5*a(n)) = a(n) + 5.

A303910 Largest positive integer m with pi(m*n) = m + n, where pi(x) denotes the number of primes not exceeding x.

Original entry on oeis.org

41, 148, 409, 998, 2597, 6424, 15889, 39970, 100192, 251637, 637063, 1617110, 4124272, 10553278, 27066824, 69709557, 179992524, 465769748, 1208198402, 3140421406, 8179001739, 21338685037, 55762148901, 145935688930, 382465573384, 1003652346785, 2636913002779
Offset: 5

Views

Author

Chai Wah Wu, May 02 2018

Keywords

Comments

a(n) >= A281197(n) >= A247600(n).

Crossrefs

Showing 1-3 of 3 results.