OFFSET
0,2
LINKS
E. R. Bobo, A sequence related to the harmonic series, College Math. J. 26 (1995), 308-310.
FORMULA
a(n) = floor(e*n + (e-1)/2 + (e - 1/e)/(24*(n + 1/2))), after a suggestion by David Cantrell.
EXAMPLE
a(3) = 9 because H(9) - H(3) = 1/4 + ... + 1/9 < 1 < 1/4 + ... + 1/10 = H(10) - H(3).
MAPLE
PROG
(PARI) default(realprecision, 10^5); e=exp(1);
a(n) = floor(e*n+(e-1)/2+(e-1/e)/(24*n+12)); \\ Jinyuan Wang, Mar 06 2020
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Rainer Rosenthal, Jan 13 2008
EXTENSIONS
Definition corrected by David W. Cantrell, Apr 14 2008
STATUS
approved