OFFSET
0,5
LINKS
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 1063
Index entries for linear recurrences with constant coefficients, signature (1,1,0,1,-1).
FORMULA
G.f.: -(-1+x)/(1-x-x^2-x^4+x^5)
Recurrence: {a(1)=0, a(0)=1, a(2)=1, a(3)=1, a(4)=3, a(n)-a(n+1)-a(n+3)-a(n+4)+a(n+5) =0}
Sum(-1/8519*(-389-2111*_alpha+619*_alpha^2-358*_alpha^3+541*_alpha^4)*_alpha^(-1-n), _alpha=RootOf(1-_Z-_Z^2-_Z^4+_Z^5))
MAPLE
spec := [S, {S=Sequence(Prod(Union(Prod(Z, Z), Sequence(Z)), Z, Z))}, unlabeled ]: seq(combstruct[count ](spec, size=n), n=0..20);
MATHEMATICA
CoefficientList[Series[(1-x)/(1-x-x^2-x^4+x^5), {x, 0, 40}], x] (* or *) LinearRecurrence[{1, 1, 0, 1, -1}, {1, 0, 1, 1, 3}, 40] (* Harvey P. Dale, Sep 01 2017 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
EXTENSIONS
More terms from James A. Sellers, Jun 06 2000
STATUS
approved