OFFSET
0,2
LINKS
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 590
FORMULA
E.g.f.: -(-3*x+3*x^2-1)/(-1+x)^2
Recurrence: {a(0)=1, a(1)=5, (-n^2-6*n-5)*a(n)+(n+4)*a(n+1)=0, a(2)=12}.
a(n) = (n+4)*n!, n>0.
G.f.: G(0) where G(k) = 1 + x*(k+1)*(k+4)/(1 - 1/(1 + (k+4)/G(k+1)) ; (continued fraction, 3-step). - Sergei N. Gladkovskii, Oct 16 2012
From Amiram Eldar, Nov 06 2020: (Start)
Sum_{n>=0} 1/a(n) = 27/4- 2*e.
Sum_{n>=0} (-1)^n/a(n) = 27/4 - 16/e. (End)
MAPLE
spec := [S, {S=Prod(Sequence(Z), Union(Z, Z, Z, Sequence(Z)))}, labeled]: seq(combstruct[count](spec, size=n), n=0..20);
MATHEMATICA
With[{nn=20}, CoefficientList[Series[(1+3x-3x^2)/(1-x)^2, {x, 0, nn}], x] Range[0, nn]!] (* Harvey P. Dale, Nov 06 2014 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
STATUS
approved