OFFSET
0,9
LINKS
Index entries for linear recurrences with constant coefficients, signature (2, -1, 1, -2, 1, -1, 2, -1, 1, -2, 1, -1, 2, -1, 1, -2, 1, -1, 2, -1, 1, -2, 1)
FORMULA
a(n) = +2*a(n-1) -a(n-2) +a(n-3) -2*a(n-4) +a(n-5) -a(n-6) +2*a(n-7) -a(n-8) +a(n-9) -2*a(n-10) +a(n-11) -a(n-12) +2*a(n-13) -a(n-14) +a(n-15) -2*a(n-16) +a(n-17) -a(n-18) +2*a(n-19) -a(n-20) +a(n-21) -2*a(n-22) +a(n-23). G.f.: x^6*(1-x+x^2-x^3+x^6-x^9+x^10-x^11+x^12) / ((1-x)^3*(1+x+x^2)*(x^2+1)*(x^4+1)*(x^4-x^2+1)*(x^8-x^4+1) ). [From R. J. Mathar, Apr 15 2010]
MATHEMATICA
CoefficientList[Series[x^6*(1-x+x^2-x^3+x^6-x^9+x^10-x^11+x^12) / ((1-x)^3 *
(1+x+x^2) * (x^2+1) * (x^4+1) * (x^4-x^2+1) * (x^8-x^4+1)), {x, 0, 200}], x] (* Georg Fischer, Sep 28 2022 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved