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.

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

This page as a plain text file.
%I A247600 #41 Jun 06 2024 12:32:49
%S A247600 9,7,6,998,5,5,5,5,5,5,636787,1617099,4124188,10553076,5,5,179992154,
%T A247600 465769460,1208198239,3140421185,5,5,5,145935688930,5,5,5,5,5,5,5,5,5
%N A247600 Least positive integer m with pi(m*n) = m + n, where pi(x) denotes the number of primes not exceeding x.
%C A247600 The author proved that a(n) exists for every n >= 5.
%C A247600 a(39) = a(41) = 5. - _Chai Wah Wu_, Jun 06 2024
%H A247600 Zhi-Wei Sun, <a href="http://arxiv.org/abs/1409.5685">A new theorem on the prime-counting function</a>, arXiv:1409.5685 [math.NT], 2014-2017.
%e A247600 a(5) = 9 since pi(5*9) = 14 = 5 + 9, and pi(5*m) = 5 + m for no m < 9.
%t A247600 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}]
%t A247600 Table[m = 1; While[PrimePi[m*n] != m + n, m++]; m, {n, 5, 14}] (* _Robert Price_, Mar 20 2019 *)
%Y A247600 Cf. A247601, A247602, A247603, A247604, A000720, A281197.
%K A247600 nonn,more
%O A247600 5,1
%A A247600 _Zhi-Wei Sun_, Sep 21 2014
%E A247600 a(22)-a(37) from _Chai Wah Wu_, May 03 2018