OFFSET
0,5
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (6, -9, -2, 6, 0, -1).
FORMULA
G.f.=z^3/(1-3z+z^2)^2.
a(0)=0, a(1)=0, a(2)=0, a(3)=1, a(4)=6, a(5)=27, a(n)=6*a(n-1)- 9*a(n-2)- 2*a(n-3)+6*a(n-4)-a(n-6). - Harvey P. Dale, Apr 28 2014
EXAMPLE
a(4)=6 because we have 0012, 0120, 0121, 0122, 1012 and 2012.
MAPLE
G:=z^3/(1-3*z+z^3)^2: Gser:=series(G, z=0, 34): seq(coeff(Gser, z, n), n=0..30);
MATHEMATICA
CoefficientList[Series[z^3/(1-3z+z^3)^2, {z, 0, 30}], z] (* or *) LinearRecurrence[ {6, -9, -2, 6, 0, -1}, {0, 0, 0, 1, 6, 27}, 30] (* Harvey P. Dale, Apr 28 2014 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 26 2006
STATUS
approved