OFFSET
0,2
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (1,4,3,-4,6,-3,-6).
FORMULA
a(n) = a(n-1) + 4*a(n-2) + 3*a(n-3) - 4*a(n-4) + 6*a(n-5) - 3*a(n-6) - 6*a(n-7) for n >= 7.
G.f.: (1 + 2*x + 5*x^2 - 5*x^3 + 4*x^4 - 3*x^5 - 6*x^6)/((1 - x)*(1 - 4*x^2 - 7*x^3 - 3*x^4 - 9*x^5 - 6*x^6)).
PROG
(PARI) Vec((1 + 2*x + 5*x^2 - 5*x^3 + 4*x^4 - 3*x^5 - 6*x^6)/((1 - x)*(1 - 4*x^2 - 7*x^3 - 3*x^4 - 9*x^5 - 6*x^6)) + O(x^40))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Andrew Howroyd, Feb 10 2020
STATUS
approved