login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A052686 Expansion of e.g.f. x^2*(1+3*x-3*x^2)/(1-x). 1
0, 0, 2, 24, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800, 479001600, 6227020800, 87178291200, 1307674368000, 20922789888000, 355687428096000, 6402373705728000, 121645100408832000, 2432902008176640000 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
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
Cf. A000142.
Sequence in context: A072217 A229429 A281139 * A258781 A371207 A064818
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 4 05:30 EDT 2024. Contains 372227 sequences. (Running on oeis4.)