OFFSET
0,4
FORMULA
a(n) = n! * Sum_{k=0..floor(n/3)} Stirling2(n-2*k,k)/(n-3*k+1)!.
MATHEMATICA
nmax = 20; CoefficientList[Series[1 - x^2 - ProductLog[-E^(x*(1 - x^2))*x^3]/x, {x, 0, nmax}], x] * Range[0, nmax]! (* Vaclav Kotesovec, Mar 11 2024 *)
PROG
(PARI) a(n) = n!*sum(k=0, n\3, stirling(n-2*k, k, 2)/(n-3*k+1)!);
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Mar 11 2024
STATUS
approved