OFFSET
0,4
FORMULA
a(0) = 0, a(1) = 1; a(n+1) = Sum_{k=1..n-1} (k-1)! * binomial(n,k) * a(n-k).
E.g.f.: (1-x)^(1-x) / exp(1-x) * Integral(exp(1-x) / (1-x)^(1-x) dx). - Vaclav Kotesovec, Jun 25 2022
MATHEMATICA
nmax = 25; CoefficientList[Series[(1-x)^(1-x) / E^(1-x) * Integrate[E^(1-x) / (1-x)^(1-x), x], {x, 0, nmax}], x] * Range[0, nmax]! (* Vaclav Kotesovec, Jun 25 2022 *)
PROG
(PARI) a_vector(n) = my(v=vector(n)); v[1]=1; for(i=1, n-1, v[i+1]=sum(j=1, i-1, (j-1)!*binomial(i, j)*v[i-j])); concat(0, v);
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 25 2022
STATUS
approved