OFFSET
0,3
FORMULA
a(0) = 1; a(n) = Sum_{k=1..n} binomial(n,k-1) * 3^(k-1) * a(n-k).
MATHEMATICA
nmax = 20; A[_] = 0; Do[A[x_] = 1 + x A[x/(1 - 3 x)]/(1 - 3 x)^2 + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x]
a[0] = 1; a[n_] := a[n] = Sum[Binomial[n, k - 1] 3^(k - 1) a[n - k], {k, 1, n}]; Table[a[n], {n, 0, 20}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Feb 18 2022
STATUS
approved