OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..347
FORMULA
E.g.f.: exp( -LambertW(2 * (1 - exp(x))) ).
a(n) = Sum_{k=0..n} 2^k * (k+1)^(k-1) * Stirling2(n,k).
From Vaclav Kotesovec, Jul 18 2022: (Start)
E.g.f.: LambertW(2 * (1 - exp(x))) / (2 * (1 - exp(x))).
a(n) ~ sqrt(2*exp(1) + 1) * sqrt(log(1 + exp(-1)/2)) * n^(n-1) / (exp(n-1) * (log(exp(1) + 1/2) - 1)^n). (End)
MAPLE
b:= proc(n, m) option remember; `if`(n=0,
2^m*(m+1)^(m-1), m*b(n-1, m)+b(n-1, m+1))
end:
a:= n-> b(n, 0):
seq(a(n), n=0..21); # Alois P. Heinz, Jul 29 2022
MATHEMATICA
b[n_, m_] := b[n, m] = If[n == 0, 2^m*(m + 1)^(m - 1), m*b[n - 1, m] + b[n - 1, m + 1]];
a[n_] := b[n, 0];
Table[a[n], {n, 0, 21}] (* Jean-François Alcover, Nov 16 2022, after Alois P. Heinz *)
PROG
(PARI) my(N=20, x='x+O('x^N)); Vec(serlaplace(exp(-lambertw(2*(1-exp(x))))))
(PARI) a(n) = sum(k=0, n, 2^k*(k+1)^(k-1)*stirling(n, k, 2));
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jul 16 2022
STATUS
approved