OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,6,0,-2).
FORMULA
a(n) = 6*a(n-2)-2*a(n-4).
MATHEMATICA
CoefficientList[Series[(1 + 5 x - 2 x^3)/(1 - 6 x^2 + 2 x^4), {x, 0, 30}], x] (* Vincenzo Librandi, Oct 23 2014 *)
LinearRecurrence[{0, 6, 0, -2}, {1, 5, 6, 28}, 40] (* Harvey P. Dale, Apr 20 2017 *)
PROG
(PARI) Vec((1+5*x-2*x^3)/(1-6*x^2+2*x^4) + O(x^100))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Oct 23 2014
STATUS
approved