OFFSET
0,2
FORMULA
a(0) = 1; a(n) = Sum_{k=1..n} (2^k * (k-1)! + 1) * binomial(n-1,k-1) * a(n-k).
a(n) = n! * Sum_{k=0..n} 2^(n-k) * Bell(k)/k!, where Bell() is A000110.
PROG
(PARI) a_vector(n) = my(v=vector(n+1)); v[1]=1; for(i=1, n, v[i+1]=sum(j=1, i, (2^j*(j-1)!+1)*binomial(i-1, j-1)*v[i-j+1])); v;
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Dec 06 2023
STATUS
approved