login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A038157
a(n) = n! * Sum_{k=1..n-2} 1/k!.
3
0, 0, 0, 6, 36, 200, 1230, 8652, 69272, 623520, 6235290, 68588300, 823059732, 10699776672, 149796873590, 2246953104060, 35951249665200, 611171244308672, 11001082397556402, 209020565553571980, 4180411311071439980, 87788637532500240000
OFFSET
0,4
FORMULA
a(n) = floor(n!*exp(1)) - n - 1 - n! for n>1. - Mark van Hoeij, Oct 30 2011
MATHEMATICA
a=1; Table[a=(a-n)*(n+1); Abs[a], {n, 0, 40}] (* Vladimir Joseph Stephan Orlovsky, Nov 20 2009 *)
Table[n!Sum[1/k!, {k, n-2}], {n, 0, 30}] (* Harvey P. Dale, Dec 26 2021 *)
CROSSREFS
Sequence in context: A345340 A232138 A000551 * A267468 A225685 A377197
KEYWORD
nonn
STATUS
approved