OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,4,0,1).
FORMULA
a(2k-1) = Fib(3k-1), a(2k) = Fib(3k).
G.f.: -(x^3+3*x+2)*x/(x^4+4*x^2-1). - Alois P. Heinz, Jun 20 2013
MATHEMATICA
LinearRecurrence[{0, 4, 0, 1}, {2, 3, 8, 13}, 30] (* Harvey P. Dale, Dec 31 2021 *)
PROG
(PARI) a(n) = if (n==1, 2, if (n==2, 3, if (n%2, 2*a(n-1)+a(n-2), 3*a(n-2)+2*a(n-3)))) \\ Michel Marcus, Jun 20 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Antonia Redondo Buitrago (aredondo(AT)sabuco.com), Jul 23 2009
STATUS
approved