OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
FORMULA
a(n) = A033540(n+1) + 1.
a(n) = n! * (1 + Sum(1/k!, k=0..n)) = A000522(n) + n!. - Michael Somos, Mar 26 1999
E.g.f.: (1+exp(x))/(1-x).
a(n) = floor(n!*(e+1)), n>0. - Gary Detlefs, Jul 18 2010
D-finite with recurrence: a(n) +(-n-1)*a(n-1) +(n-1)*a(n-2)=0. - R. J. Mathar, Feb 16 2014
0 = +a(n)*(+a(n+1) -3*a(n+2) +a(n+3)) +a(n+1)*(+a(n+1) -a(n+3)) +a(n+2)*(+a(n+2)) if n>=0. - Michael Somos, Oct 23 2017
EXAMPLE
G.f. = 2 + 3*x + 7*x^2+ 22*x^3 + 89*x^4 + 446*x^5 + 2677*x^6 + 18740*x^7 + ...
MATHEMATICA
a[ n_] := If[ n < 0, 0, n! SeriesCoefficient[ (1 + Exp[x]) / (1 - x), {x, 0, n}]] (* Michael Somos, Sep 04 2013 *)
Range[0, 20]! CoefficientList[Series[(1 + Exp[x])/(1 - x), {x, 0, 20}], x] (* Vincenzo Librandi, Feb 17 2014 *)
PROG
(PARI) {a(n) = if( n<0, 0, n! * sum(k=0, n, 1/k!, 1))}; /* Michael Somos, Sep 04 2013 */
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved