login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A354314
Expansion of e.g.f. 1/(1 - x/3 * (exp(3 * x) - 1)).
2
1, 0, 2, 9, 60, 495, 4986, 58401, 780984, 11749779, 196446870, 3612882933, 72484364052, 1575418827879, 36875093680530, 924769734574185, 24737895033896304, 703105981990977915, 21159355356941587470, 672148402091190649629, 22475238194908656800460
OFFSET
0,3
FORMULA
a(0) = 1; a(n) = Sum_{k=2..n} k * 3^(k-2) * binomial(n,k) * a(n-k).
a(n) = n! * Sum_{k=0..floor(n/2)} 3^(n-2*k) * k! * Stirling2(n-k,k)/(n-k)!.
PROG
(PARI) my(N=30, x='x+O('x^N)); Vec(serlaplace(1/(1-x/3*(exp(3*x)-1))))
(PARI) a_vector(n) = my(v=vector(n+1)); v[1]=1; for(i=1, n, v[i+1]=sum(j=2, i, j*3^(j-2)*binomial(i, j)*v[i-j+1])); v;
(PARI) a(n) = n!*sum(k=0, n\2, 3^(n-2*k)*k!*stirling(n-k, k, 2)/(n-k)!);
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, May 23 2022
STATUS
approved