OFFSET
0,3
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 2, 3, 0, -2, -1).
FORMULA
G.f.: (1+x-x^3)/(1-2*x^2-3*x^3+2*x^5+x^6).
a(n) = 2*a(n-2) + 3*a(n-3) - 2*a(n-5) - a(n-6) for n>=6.
MATHEMATICA
LinearRecurrence[{0, 2, 3, 0, -2, -1}, {1, 1, 2, 4, 7, 12}, 35] (* Jean-François Alcover, Oct 30 2017 *)
PROG
(PARI) a(n)=polcoeff((1+x-x^3)/(1-2*x^2-3*x^3+2*x^5+x^6)+x*O(x^n), n, x)
CROSSREFS
KEYWORD
nonn
AUTHOR
Paul D. Hanna, Oct 25 2004
STATUS
approved