OFFSET
0,2
COMMENTS
Partial sums of A052908. - R. J. Mathar, Nov 28 2011
LINKS
INRIA Algorithms Project, Encyclopedia of Combinatorial Structures 881
Index entries for linear recurrences with constant coefficients, signature (2,0,1,-1)
FORMULA
G.f.: -(-1+x^3)/(1-2*x-x^3+x^4)
Recurrence: {a(0)=1, a(2)=4, a(1)=2, a(3)=8, a(n)-a(n+1)-2*a(n+3)+a(n+4)=0}
Sum(-1/643*(-222-40*_alpha-93*_alpha^2+54*_alpha^3)*_alpha^(-1-n), _alpha=RootOf(1-2*_Z-_Z^3+_Z^4))
MAPLE
spec := [S, {S=Sequence(Union(Z, Prod(Sequence(Prod(Z, Z, Z)), Z)))}, unlabeled]: seq(combstruct[count](spec, size=n), n=0..20);
MATHEMATICA
CoefficientList[Series[(1-x^3)/(1-2x-x^3+x^4), {x, 0, 40}], x] (* or *) LinearRecurrence[{2, 0, 1, -1}, {1, 2, 4, 8}, 40] (* Harvey P. Dale, Jul 21 2021 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
encyclopedia(AT)pommard.inria.fr, Jan 25 2000
STATUS
approved