OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..362
Sangchul Lee, Fast and simple recursive algorithm for A375540, answer to question on Mathematics Stack Exchange, 2025.
Sangchul Lee, Closed form for A375540, answer to question on Mathematics Stack Exchange, 2025.
FORMULA
a(n) ~ n^n / (sqrt(1+LambertW(-exp(-1)/2)) * exp(n) * (-LambertW(-exp(-1)/2))^n). - Vaclav Kotesovec, Sep 01 2024
a(n) = f(n,n) where f(n,k) = Sum_{j=0..n} j!*2^j*binomial(n,j)*Stirling2(k,j) = Sum_{j=0..n} binomial(n,j)*j^k*2^j*(-1)^(n-j) (due to Sangchul Lee). - Mikhail Kurkov, Mar 20 2026
MAPLE
gf := n -> (1/2 - exp(-x))^n:
ser := n -> series(gf(n), x, 20):
a := n -> expand(2^n*n!*coeff(ser(n), x, n)):
seq(a(n), n = 0..18);
# Alternative:
b:= proc(n, k) option remember;
`if`(n=0, 1, k*(b(n-1, k)+b(n-1, k-1)))
end:
a:= n-> b(n$2):
seq(a(n), n=0..18); # Alois P. Heinz, Aug 03 2025
MATHEMATICA
Table[2^n * n! * SeriesCoefficient[(1/2 - E^(-x))^n, {x, 0, n}], {n, 0, 20}] (* Vaclav Kotesovec, Sep 01 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Sep 01 2024
STATUS
approved
