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