A156625 Floor(integral of log(x) from 1 to n).
0, 1, 2, 4, 5, 7, 9, 11, 14, 16, 18, 21, 23, 26, 29, 32, 35, 37, 40, 43, 47, 50, 53, 56, 59, 62, 66, 69, 73, 76, 79, 83, 86, 90, 94, 97, 101, 104, 108, 112, 115, 119, 123, 127, 131, 134, 138, 142
Offset: 2
Crossrefs
Cf. A156624.
Programs
-
Mathematica
Table[Floor[Integrate[Log[n],{n,1,x}]],{x,2,50}] (* Harvey P. Dale, May 08 2023 *)
-
Sage
[floor(N(integral(ln(x), x, 1, n))) for n in range (2,50)]
Formula
a(n)=A050504(n)-n+1. - R. J. Mathar, Feb 12 2009