OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,4,0,1).
FORMULA
G.f.: x*(x+1)^2/(1 -4*x^2 -x^4).
a(n) = Fibonacci((6*n + 1 - (-1)^n)/4) = Fibonacci(A007494(n)). - G. C. Greubel, Jul 12 2021
MATHEMATICA
Table[Fibonacci[(6*n+1 -(-1)^n)/4], {n, 0, 40}] (* G. C. Greubel, Jul 12 2021 *)
PROG
(Magma) I:=[0, 1, 2, 5]; [n le 4 select I[n] else 4*Self(n-2) +Self(n-4): n in [1..41]]; // G. C. Greubel, Jul 12 2021
(Sage) [fibonacci((6*n+1-(-1)^n)/4) for n in [0..40]] # G. C. Greubel, Jul 12 2021
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Creighton Dement, Apr 10 2006
STATUS
approved