login
A090973
a(n) = ceiling(prime(n)/n).
3
2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
OFFSET
1,1
COMMENTS
For n > 1, a(n) = A038605(n)+1. - David Wasserman, Feb 23 2006
a(A038606(n)) = n+1. - Reinhard Zumkeller, Aug 16 2009
LINKS
EXAMPLE
a(12) = 4 as pi(48) = 15 > 12 > pi(36) = 11.
MATHEMATICA
Table[Ceiling[Prime[n]/n], {n, 1, 120}] (* G. C. Greubel, Feb 02 2019 *)
PROG
(PARI) vector(120, n, ceil(prime(n)/n)) \\ G. C. Greubel, Feb 02 2019
(Magma) [Ceiling(NthPrime(n)/n)): n in [1..120]]; // G. C. Greubel, Feb 02 2019
(Sage) [ceil(nth_prime(n)/n) for n in (1..120)] # G. C. Greubel, Feb 02 2019
CROSSREFS
Cf. A068901. - Reinhard Zumkeller, Aug 16 2009
Sequence in context: A156685 A124230 A330780 * A076634 A083277 A274011
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Jan 04 2004
EXTENSIONS
More terms from David Wasserman, Feb 23 2006
STATUS
approved