OFFSET
1,2
COMMENTS
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,0,1,-1).
FORMULA
From Colin Barker, Nov 30 2016: (Start)
a(n+11) = a(n) + 23.
a(n) = a(n-1) + a(n-11) - a(n-12) for n>12.
G.f.: x*(1 +x +x^2 +x^3 +2*x^4 +2*x^5 +x^6 +3*x^7 +x^8 +3*x^9 +2*x^10 +5*x^11) / ((1 -x)^2*(1 +x +x^2 +x^3 +x^4 +x^5 +x^6 +x^7 +x^8 +x^9 +x^10))
(End)
MATHEMATICA
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {1, 2, 3, 4, 6, 8, 9, 12, 13, 16, 18, 24}, 90] (* Harvey P. Dale, Jun 25 2020 *)
PROG
(PARI) Vec(x*(1+x+x^2+x^3+2*x^4+2*x^5+x^6+3*x^7+x^8+3*x^9+2*x^10+5*x^11) / ((1-x)^2*(1+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8+x^9+x^10)) + O(x^100)) \\ Colin Barker, Nov 30 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Nov 29 2016
STATUS
approved