OFFSET
0,2
FORMULA
a(n) = A036781(n) - 1.
E.g.f.: exp(x-1)*(Ei(1)-Ei(1-x)) + exp(x)*(x-1) + 1/(1-x). - Robert Israel, Jan 05 2015
MAPLE
N:= 30: # to get a(0) to a(N)
C:= ListTools:-PartialSums([seq(j!, j=0..N)]):
seq(n-1+C[n+1], n=0..N); # Robert Israel, Jan 05 2015
PROG
(PARI) a(n) = n - 1 + sum(j=0, n, j! ); \\ Joerg Arndt, Jan 06 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved