OFFSET
0,3
COMMENTS
a(2n) = F(2n+1) = A001519(n).
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,-1,2,2).
FORMULA
a(n) = a(n-1) - a(n-2) + 2*a(n-3) + 2*a(n-4) for n > 3. - Colin Barker, May 18 2019
MATHEMATICA
CoefficientList[Series[-(1-x+3x^2+x^3)/((x^2+x-1)(2x^2+1)), {x, 0, 100}], x] (* or *) LinearRecurrence[{1, -1, 2, 2}, {1, 0, 2, 5}, 100] (* Harvey P. Dale, May 14 2022 *)
PROG
(PARI) Vec((1 - x + 3*x^2 + x^3) / ((1 - x - x^2)*(1 + 2*x^2)) + O(x^40)) \\ Colin Barker, May 18 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Feb 23 2006
STATUS
approved