OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,0,0,1,0,0,0,-1,0,0,0,1).
FORMULA
a(n) = a(n-4) - a(n-8) + a(n-12). - R. J. Mathar, Dec 17 2010
G.f.: ( -1 - x - x^2 - 2*x^3 - x^8 - x^9 - x^10 - 4*x^11 ) / ( (x-1)*(1+x)*(1+x^2)*(x^8+1) ). - R. J. Mathar, Dec 17 2010
a(4n) = a(4n+1) = a(4n+2) = 1. a(4n+3) = A165207(n).
MATHEMATICA
LinearRecurrence[{0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, 1}, {1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 4}, 50] (* G. C. Greubel, Apr 20 2016 *)
PROG
(PARI) x='x+O('x^50); Vec(( -1-x-x^2-2*x^3-x^8-x^9-x^10-4*x^11 )/((x-1)*(1+x)*(1+x^2)*(x^8+1))) \\ G. C. Greubel, Sep 20 2018
(Magma) m:=50; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(( -1-x-x^2-2*x^3-x^8-x^9-x^10-4*x^11 )/((x-1)*(1+x)*(1+x^2)*(x^8+1)))); // G. C. Greubel, Sep 20 2018
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Paul Curtz, Oct 03 2009
STATUS
approved