OFFSET
0,8
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,-2,1).
FORMULA
G.f.: x^6*(1-x^2+x^3+x^9-x^10+x^12)/((1-x)^2*(1-x^21)). - R. J. Mathar, Sep 09 2008
a(n) = 2*a(n-1) - a(n-2) + a(n-21) - 2*a(n-22) + a(n-23). - R. J. Mathar, Aug 11 2021
MATHEMATICA
CoefficientList[Series[x^6*(1-x^2+x^3+x^9-x^10+x^12) / ((1-x)^2*(1-x^21)), {x, 0, 64}], x] (* Georg Fischer, Aug 15 2021 *)
LinearRecurrence[{2, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -2, 1}, {0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 14, 16, 18, 20, 22}, 70] (* Harvey P. Dale, Feb 24 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved