OFFSET
0,3
REFERENCES
R. P. Stanley, Enumerative Combinatorics, Cambridge, Vol. 2, 1999; see Example 5.2.3.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
FORMULA
E.g.f.: (1-x)^(-2*x).
a(n) = (-1)^n*Sum_{k=0..floor(n/2)} 2^k*binomial(n, k)*k!*Stirling1(n-k, k). - Vladeta Jovovic, Dec 19 2004
a(n) ~ n! * n * (1 + (1-2*log(n)-2*gamma)/n), where gamma is the Euler-Mascheroni constant (A001620). - Vaclav Kotesovec, Apr 21 2014
MATHEMATICA
CoefficientList[Series[(1-x)^(-2*x), {x, 0, 20}], x] * Range[0, 20]! (* Vaclav Kotesovec, Apr 21 2014 *)
PROG
(PARI) x='x+O('x^30); Vec(serlaplace((1-x)^(-2*x))) \\ G. C. Greubel, Aug 29 2018
(Magma) m:=30; R<x>:=PowerSeriesRing(Rationals(), m); b:=Coefficients(R!((1-x)^(-2*x))); [Factorial(n-1)*b[n]: n in [1..m]]; // G. C. Greubel, Aug 29 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 15 2000
STATUS
approved