OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..337
Eric Weisstein's World of Mathematics, Lambert W-Function.
FORMULA
a(n) = Sum_{k=0..n} (-3*k+1)^(k-1) * Stirling2(n,k).
E.g.f.: A(x) = exp( LambertW(3*(exp(x) - 1))/3 ).
G.f.: Sum_{k>=0} (-3*k+1)^(k-1) * x^k/Product_{j=1..k} (1 - j*x).
a(n) ~ -(-1)^n * sqrt(3*exp(1) - 1) * sqrt(log(3) - log(3 - exp(-1))) * n^(n-1) / (3 * exp(n + 1/3) * (log(3) - log(3*exp(1) - 1) + 1)^n). - Vaclav Kotesovec, Nov 24 2021
MAPLE
b:= proc(n, m) option remember; `if`(n=0,
(1-3*m)^(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
a[n_] := Sum[(-3*k + 1)^(k - 1) * StirlingS2[n, k], {k, 0, n}]; Array[a, 18, 0] (* Amiram Eldar, Nov 27 2021 *)
PROG
(PARI) a(n) = sum(k=0, n, (-3*k+1)^(k-1)*stirling(n, k, 2));
(PARI) my(N=20, x='x+O('x^N)); Vec(serlaplace(exp(lambertw(3*(exp(x)-1))/3)))
(PARI) my(N=20, x='x+O('x^N)); Vec(sum(k=0, N, (-3*k+1)^(k-1)*x^k/prod(j=1, k, 1-j*x)))
CROSSREFS
KEYWORD
sign
AUTHOR
Seiichi Manyama, Nov 23 2021
STATUS
approved