OFFSET
0,3
FORMULA
a(n) = Sum_{k=0..n} (-3)^(n-k) * (Product_{j=0..k-1} (6*j+1)) * Stirling2(n,k).
a(0) = 1; a(n) = Sum_{k=1..n} (-3)^k * (5/3 * k/n - 2) * binomial(n,k) * a(n-k).
a(0) = 1; a(n) = a(n-1) + Sum_{k=1..n-1} 3^k * binomial(n-1,k) * a(n-k).
PROG
(PARI) a(n) = sum(k=0, n, (-3)^(n-k)*prod(j=0, k-1, 6*j+1)*stirling(n, k, 2));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Nov 16 2023
STATUS
approved