OFFSET
0,3
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,-2,-5,-1).
FORMULA
G.f.: -x*(x-1)*(1+x) / ( (x^2+4*x-1)*(x^2+x-1) ). - R. J. Mathar, Nov 10 2013
a(n) = F(n) + 2*Sum_{k=1..n} F(n-k)*F(3*k), where F=A000045 (the Fibonacci sequence). - Yomna Bakr and Greg Dresden, Jun 17 2024
MATHEMATICA
Table[(2Fibonacci[3n]-Fibonacci[n])/3, {n, 0, 30}] (* Harvey P. Dale, Dec 08 2012 *)
LinearRecurrence[{5, -2, -5, -1}, {0, 1, 5, 22}, 30] (* G. C. Greubel, Dec 02 2017 *)
PROG
(PARI) for(n=0, 30, print1((2*fibonacci(3*n) - fibonacci(n))/3, ", ")) \\ G. C. Greubel, Dec 02 2017
(Magma) [(2*Fibonacci(3*n) - Fibonacci(n))/3: n in [0..30]]; // G. C. Greubel, Dec 02 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved