OFFSET
0,2
FORMULA
a(0) = 1; a(n) = 3 * Sum_{k=1..n} (k-1)! * binomial(n,k) * a(n-k).
a(n) = Sum_{k=0..n} 3^k * k! * |Stirling1(n, k)|.
a(n) ~ n! * exp(n/3) / (3 * (exp(1/3) - 1)^(n+1)). - Vaclav Kotesovec, Jun 04 2022
PROG
(PARI) my(N=20, x='x+O('x^N)); Vec(serlaplace(1/(1+3*log(1-x))))
(PARI) a_vector(n) = my(v=vector(n+1)); v[1]=1; for(i=1, n, v[i+1]=3*sum(j=1, i, (j-1)!*binomial(i, j)*v[i-j+1])); v;
(PARI) a(n) = sum(k=0, n, 3^k*k!*abs(stirling(n, k, 1)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 21 2022
STATUS
editing