OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..465
FORMULA
a(0) = 1; a(n) = Sum_{k=1..n} binomial(n-1,k-1) * (Bell(k+1) - Bell(k)) * a(n-k).
a(n) = Sum_{k=0..n} Stirling2(n,k) * A000248(k).
MAPLE
g:= proc(n) option remember; `if`(n=0, 1,
add(g(n-j)*j*binomial(n-1, j-1), j=1..n))
end:
b:= proc(n, m) option remember; `if`(n=0,
g(m), m*b(n-1, m)+b(n-1, m+1))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..22); # Alois P. Heinz, Aug 27 2021
MATHEMATICA
nmax = 22; CoefficientList[Series[Exp[(Exp[x] - 1) Exp[Exp[x] - 1]], {x, 0, nmax}], x] Range[0, nmax]!
a[0] = 1; a[n_] := a[n] = Sum[Binomial[n - 1, k - 1] (BellB[k + 1] - BellB[k]) a[n - k], {k, 1, n}]; Table[a[n], {n, 0, 22}]
PROG
(PARI) my(x='x+O('x^25)); Vec(serlaplace(exp((exp(x)-1)*exp(exp(x)-1)))) \\ Michel Marcus, Aug 27 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 27 2021
STATUS
approved