OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..350
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 619
FORMULA
E.g.f.: x^3*(-1+x)/(-1+2*x)
Recurrence: a(0)=0, a(1)=0, a(2)=0, a(3)=6, a(4)=24, a(n) = 2*n*a(n-1).
a(n) = 2^(n-4)*n!, n>3.
G.f.: 6*x^3 + 24*x^4*Hypergeometric2F0([5,1], [], 2*x). - G. C. Greubel, Jun 13 2022
MAPLE
spec := [S, {S=Prod(Z, Z, Z, Sequence(Prod(Z, Sequence(Z))))}, labeled]: seq(combstruct[count](spec, size=n), n=0..20);
MATHEMATICA
With[{nn=20}, CoefficientList[Series[x^3(-1+x)/(-1+2x), {x, 0, nn}], x] Range[0, nn]!] (* Harvey P. Dale, Nov 13 2014 *)
PROG
(Magma) [0, 0, 0, 6] cat [2^(n-4)*Factorial(n): n in [4..30]]; // G. C. Greubel, Jun 13 2022
(SageMath) [(2^(n-4) - 2^(n-4)*bool(n<3) + (1/2)*bool(n==3))*factorial(n) for n in (0..30)] # G. C. Greubel, Jun 13 2022
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
STATUS
approved