login
A078045
Expansion of (1-x)/(1+x+x^2-2*x^3).
0
1, -2, 1, 3, -8, 7, 7, -30, 37, 7, -104, 171, -53, -326, 721, -501, -872, 2815, -2945, -1614, 10189, -14465, 1048, 33795, -63773, 32074, 99289, -258909, 223768, 233719, -975305, 1189122, 253621, -3393353, 5517976, -1617381, -10687301, 23340634, -15888095, -28827141, 91396504
OFFSET
0,2
FORMULA
Recurrence: a(n) = 2a(n-3) - a(n-2) - a(n-1), starting 1,-2,1. - Ralf Stephan, Aug 18 2013
MATHEMATICA
CoefficientList[Series[(1-x)/(1+x+x^2-2*x^3), {x, 0, 40}], x] (* or *) LinearRecurrence[{-1, -1, 2}, {1, -2, 1}, 50] (* Harvey P. Dale, Jun 12 2016 *)
CROSSREFS
First differences of A077975.
Sequence in context: A256420 A205391 A352858 * A202624 A342224 A145490
KEYWORD
sign,easy
AUTHOR
N. J. A. Sloane, Nov 17 2002
STATUS
approved