A086511 a(n) is the smallest integer k > 1 such that k > n * pi(k), where pi() denotes the prime counting function.
2, 9, 28, 121, 336, 1081, 3060, 8409, 23527, 64541, 175198, 480865, 1304499, 3523885, 9557956, 25874753, 70115413, 189961183, 514272412, 1394193581, 3779849620, 10246935645, 27788566030, 75370121161, 204475052376, 554805820453, 1505578023622, 4086199301997
Offset: 1
Keywords
Examples
Consider the pairs (k, pi(k)) for k > 1. The inequality k > 1 * pi(k) is first satisfied at k = 2 and so a(1) = 2. Similarly, the inequality k > 2 * pi(k) is first satisfied at k = 9 and so a(2) = 9.
Links
- Giovanni Resta, Table of n, a(n) for n = 1..50
- Eric Weisstein's World of Mathematics, Prime Counting Function.
Programs
-
PARI
a(n) = { k = 2; while (k <= n*primepi(k), k++); return (k);} \\ Michel Marcus, Jun 19 2013
Formula
Heuristically, for large n, a(n) ~= 3.0787*(2.70888^n) [error < 0.05% for 15 <= n <= 20].
From Nathaniel Johnston, Apr 10 2011: (Start)
a(n) >= exp(n/2 + sqrt(n^2 + 4n)/2), n >= 6.
a(n) = A038625(n) + m(n)*n + 1 for some m(n) >= 0. For n = 2, 3, 4, ..., m(n) = 3, 0, 6, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, ...
(End)
Extensions
a(21)-a(26) from Nathaniel Johnston, Apr 10 2011
Corrected a(26) and a(27)-a(28) from Giovanni Resta, Sep 01 2018
a(29)-a(50) obtained from the values of A038625 computed by Jan Büthe. - Giovanni Resta, Sep 01 2018
Comments