login
A024579
a(n) = Sum_{k=1..n} [ 1/{k/e} ], where {x} := x - [ x ].
2
2, 3, 12, 14, 15, 19, 20, 21, 24, 25, 46, 48, 49, 55, 56, 57, 60, 61, 62, 64, 65, 75, 77, 78, 83, 84, 85, 88, 89, 116, 118, 119, 126, 127, 128, 132, 133, 134, 136, 137, 149, 151, 152, 157, 158, 159, 162, 163, 201, 203, 204, 211, 213, 214, 218, 219, 220, 222, 223, 236, 238, 239
OFFSET
1,1
LINKS
MATHEMATICA
Table[Sum[Floor[1/FractionalPart[k/E]], {k, n}], {n, 100}] (* Clark Kimberling, Aug 17 2012 *)
PROG
(PARI) a(n) = sum(k=1, n, floor(1/frac(k/exp(1)))); \\ Michel Marcus, Jul 17 2019
CROSSREFS
Cf. A024580. Partial sums of A024578.
Sequence in context: A102034 A102150 A039588 * A291565 A299545 A068603
KEYWORD
nonn
STATUS
approved