OFFSET
0,3
COMMENTS
Diagonal sums of A110511.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-2,0,-1).
FORMULA
a(n) = Sum_{k=0..floor(n/2)} Sum_{j=0..(n-k)} (-1)^(n-k-j)*C(n-k, j)*(-2)^(j-k)*C(k, j-k).
a(0)=1, a(1)=-1, a(2)=2, a(n) = -2*a(n-1) - a(n-3). - Harvey P. Dale, Jun 27 2012
MATHEMATICA
CoefficientList[Series[(1+x)/(1+2x+x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[ {-2, 0, -1}, {1, -1, 2}, 40] (* Harvey P. Dale, Jun 27 2012 *)
PROG
(PARI) my(x='x+O('x^50)); Vec((1+x)/(1+2*x+x^3)) \\ G. C. Greubel, Aug 29 2017
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Jul 24 2005
STATUS
approved