OFFSET
0,4
COMMENTS
Invert transform of A000166.
LINKS
N. J. A. Sloane, Transforms
Eric Weisstein's World of Mathematics, Subfactorial
FORMULA
G.f.: 1/(1 - Sum_{k>=1} A000166(k)*x^k).
G.f.: 1/(2 - 1/(1 - x^2/(1 - 2*x - 4*x^2/(1 - 4*x - 9*x^2/(1 - 6*x - 16*x^2/(1 - ...)))))), a continued fraction.
a(n) ~ exp(-1) * n! * (1 + 2/n^2 + 6/n^3 + 35/n^4 + 256/n^5 + 2187/n^6 + 21620/n^7 + 243947/n^8 + 3098528/n^9 + 43799819/n^10 + ...), for coefficients see A305275. - Vaclav Kotesovec, Aug 18 2018
MATHEMATICA
nmax = 23; CoefficientList[Series[1/(2 - Sum[k! x^k/(1 + x)^(k + 1), {k, 0, nmax}]), {x, 0, nmax}], x]
nmax = 23; CoefficientList[Series[1/(1 - Sum[Round[k!/Exp[1]] x^k, {k, 1, nmax}]), {x, 0, nmax}], x]
a[0] = 1; a[n_] := a[n] = Sum[Subfactorial[k] a[n - k], {k, 1, n}]; Table[a[n], {n, 0, 23}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 15 2018
STATUS
approved