OFFSET
1,1
COMMENTS
It is interesting to note that a(n)/n^2 converges to e/2 .
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..5000
FORMULA
Partial sums of A022843.
EXAMPLE
a(3) = 15 because [2.71828...] + [2*2.71828...] + [3*2.71828...] = 2 + 5 + 8 = 15.
MAPLE
with(numtheory):Digits:=100:s:=0:e:=exp(1):for n from 1 to 100 do: s:=s+floor(n*e):printf(`%d,
`, s):od:
MATHEMATICA
Accumulate[Table[Floor[E n], {n, 60}]] (* Harvey P. Dale, Jan 14 2012 *)
PROG
(PARI) for(n=1, 50, print1(sum(k=1, n, floor(exp(1)*k)), ", ")) \\ G. C. Greubel, Jun 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Mar 27 2011
STATUS
approved