OFFSET
0,1
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Tanya Khovanova, Recursive Sequences
Index entries for linear recurrences with constant coefficients, signature (1, 1).
FORMULA
G.f.: (4+14*x)/(1-x-x^2). - Philippe Deléham, Nov 19 2008
a(0)=4, a(1)=18, a(n) = a(n-1) + a(n-2). - Harvey P. Dale, Sep 04 2011
a(n) = 4*Fibonacci(n+2) + 10*Fibonacci(n) = 4*Fibonacci(n+2) + 18*Fibonacci(n). - G. C. Greubel, Mar 02 2018
MATHEMATICA
LinearRecurrence[{1, 1}, {4, 18}, 40] (* or *) CoefficientList[ Series[ -((2 (7x+2))/(x^2+x-1)), {x, 0, 40}], x](* Harvey P. Dale, Sep 04 2011 *)
Table[4*Fibonacci[n+2] + 10*Fibonacci[n], {n, 0, 50}] (* G. C. Greubel, Mar 02 2018 *)
PROG
(PARI) for(n=0, 50, print1(4*fibonacci(n+2) + 10*fibonacci(n), ", ")) \\ G. C. Greubel, Mar 02 2018
(Magma) [4*Fibonacci(n+2) + 10*Fibonacci(n): n in [0..50]]; // G. C. Greubel, Mar 02 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(30) onward added by G. C. Greubel, Mar 02 2018
STATUS
approved