OFFSET
0,3
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 0..440
FORMULA
G.f.: ( 1/(1 + x) + Sum_{k>=1} k^k*x^k/(1 + (k + 1)*x)^(k+1) )^2. - Ilya Gutkovskiy, Apr 13 2017
a(n) ~ 2*exp(-1)*n!. - Vaclav Kotesovec, Apr 13 2017
EXAMPLE
For n = 4, we get 1*9 + 0*2 + 1*1 + 2*0 + 9*1 = 19.
MATHEMATICA
Table[Sum[Subfactorial[k] Subfactorial[n - k], {k, 0, n}], {n, 0, 30}] (* Emanuele Munarini, Oct 06 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
J. C. George, May 12 2016
STATUS
approved