OFFSET
0,2
FORMULA
a(0) = 1; a(n) = Sum_{k=1..n} 3^k * binomial(n,k) * a(n-k).
a(n) = Sum_{k>=0} (3*k)^n / 2^(k + 1).
a(n) = 3^n * A000670(n).
a(n) ~ n! * 3^n / (2 * log(2)^(n+1)). - Vaclav Kotesovec, Aug 09 2021
MAPLE
a:= proc(n) option remember; `if`(n=0, 1, add(
a(n-j)*binomial(n, j)*3^j, j=1..n))
end:
seq(a(n), n=0..20); # Alois P. Heinz, Oct 06 2019
MATHEMATICA
nmax = 18; CoefficientList[Series[1/(2 - Exp[3 x]), {x, 0, nmax}], x] Range[0, nmax]!
a[0] = 1; a[n_] := a[n] = Sum[3^k Binomial[n, k] a[n - k], {k, 1, n}]; Table[a[n], {n, 0, 18}]
Table[3^n HurwitzLerchPhi[1/2, -n, 0]/2, {n, 0, 18}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Oct 06 2019
STATUS
approved