OFFSET
0,2
FORMULA
a(0) = 1; a(n) = Sum_{k=1..n} (k! + 1) * binomial(n,k) * a(n-k).
MATHEMATICA
m = 18; Range[0, m]! * CoefficientList[Series[1/(2 - Exp[x] - x/(1 - x)), {x, 0, m}], x] (* Amiram Eldar, Mar 11 2022 *)
PROG
(PARI) my(N=20, x='x+O('x^N)); Vec(serlaplace(1/(2-exp(x)-x/(1-x))))
(PARI) a(n) = if(n==0, 1, sum(k=1, n, (k!+1)*binomial(n, k)*a(n-k)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 11 2022
STATUS
approved