A226188 Least positive integer k such that 1 + 1/2 + ... + 1/k > 2n/3.
1, 2, 4, 8, 16, 31, 60, 116, 227, 441, 859, 1674, 3260, 6349, 12367, 24088, 46916, 91380, 177984, 346666, 675214, 1315136, 2561536, 4989191, 9717617, 18927334, 36865412
Offset: 1
Examples
a(8) = 116 because 1 + 1/2 + ... + 1/115 < 16/3 < 1 + 1/2 + ... + 1/116.
Programs
-
Mathematica
z = 18; f[n_] := 1/n; Do[s = 0; a[n] = NestWhile[# + 1 &, 1, ! (s += f[#]) >= 2n/3 &], {n, 1, z}]; m = Map[a, Range[z]]
Extensions
More terms from Jean-François Alcover, Jun 05 2013
Deleted obsolete b-file. - N. J. A. Sloane, Jan 04 2019
Comments