OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (2, -4, 8, -64, 128, -256, 512).
FORMULA
G.f.: (1-2*x+8*x^2-16*x^3+128*x^4-96*x^5+128*x^6-256*x^7)/(1-2*x)/(1+4*x^2)/(1+64*x^4).
MATHEMATICA
CoefficientList[Series[(1-2x+8x^2-16x^3+128x^4-96x^5+128x^6-256x^7)/ (1-2x)/(1+4x^2)/(1+64x^4), {x, 0, 50}], x] (* or *) Join[{1}, LinearRecurrence[ {2, -4, 8, -64, 128, -256, 512}, {0, 4, 0, 48, 160, -256, 0}, 50]] (* Harvey P. Dale, Apr 30 2011 *)
PROG
(PARI) {a(n)=polcoeff((1-2*x+8*x^2-16*x^3+128*x^4-96*x^5+128*x^6-256*x^7)/(1-2*x)/(1+4*x^2)/(1+64*x^4+x*O(x^n)), n)}
CROSSREFS
KEYWORD
sign
AUTHOR
Paul D. Hanna, Apr 28 2006
STATUS
approved