OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1).
FORMULA
a(n) = -(n^9 -45n^8 +846n^7 -8610n^6 +51345n^5 -181125n^4 +361584n^3 -361260n^2 +137264n -6720)/6720.
a(n) = A168054(n)/2^n.
MATHEMATICA
LinearRecurrence[{1, 0, 1, -1}, {1, 1, -1, -3}, 60] (* Harvey P. Dale, Jan 15 2015 *)
CoefficientList[Series[(1 - 2 x^2 - 3 x^3) / ((1 - x)^2 (1 + x + x^2)), {x, 0, 80}], x] (* Vincenzo Librandi, Jul 08 2016 *)
PROG
(Magma) m:=55; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((1-2*x^2-3*x^3)/((1-x)^2*(1+x+x^2)))); // Bruno Berselli, May 31 2013
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Barry, Nov 17 2009
STATUS
approved