OFFSET
2,1
REFERENCES
M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards Applied Math. Series 55, 1964 (and various reprintings), p. 238.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
M. Abramowitz and I. A. Stegun, eds., Handbook of Mathematical Functions, National Bureau of Standards, Applied Math. Series 55, Tenth Printing, 1972 [alternative scanned copy].
FORMULA
a(n) = ceiling(logarithmic integral(n)). - G. C. Greubel, May 17 2019
MATHEMATICA
Ceiling[LogIntegral[Range[2, 70]]] (* Harvey P. Dale, Dec 29 2012 *)
PROG
(PARI) vector(80, n, n++; ceil(real(-eint1(-log(n)))) ) \\ G. C. Greubel, May 17 2019
(Magma) [Ceiling(LogIntegral(n)): n in [2..80]]; // G. C. Greubel, May 17 2019
(Sage) [ceil(li(n)) for n in (2..80)] # G. C. Greubel, May 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved