OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,5,-12,9,-6,3).
FORMULA
From Colin Barker, Feb 20 2016: (Start)
a(n) = 2*a(n-1)+5*a(n-2)-12*a(n-3)+9*a(n-4)-6*a(n-5)+3*a(n-6) for n>5.
G.f.: (1+x)^2 / ((1-x)^2*(1-6*x^2-3*x^4)).
(End)
MATHEMATICA
LinearRecurrence[{2, 5, -12, 9, -6, 3}, {1, 4, 14, 36, 103, 248}, 30] (* Harvey P. Dale, Apr 18 2019 *)
PROG
(PARI) Vec((1+x)^2/((1-x)^2*(1-6*x^2-3*x^4)) + O(x^40)) \\ Colin Barker, Feb 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved