OFFSET
1,2
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
FORMULA
a(n) = ceiling(n/(Sum_{k=1..n} 1/k)).
EXAMPLE
1/4 < mean{1,1/2,1/3,...,1/9} < 1/3, so that a(9) = 4.
MATHEMATICA
f[n_] := Mean[Table[1/k, {k, 1, n}]]
Table[Floor[1/f[n]], {n, 1, 120}] (* A226762 *)
Table[Ceiling[1/f[n]], {n, 1, 120}] (* this sequence *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jun 19 2013
EXTENSIONS
Name corrected by Jason Yuen, Nov 02 2024
STATUS
approved