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.: (2+12*x)/(1-x-x^2). - Philippe Deléham, Nov 19 2008
a(n) = 2*(Fibonacci(n+2) + 5*Fibonacci(n)). - G. C. Greubel, Aug 27 2017
a(n) = 2 * A022097(n). - Alois P. Heinz, Aug 27 2017
MATHEMATICA
a={}; b=2; c=14; AppendTo[a, b]; AppendTo[a, c]; Do[b=b+c; AppendTo[a, b]; c=b+c; AppendTo[a, c], {n, 4!}]; a (* Vladimir Joseph Stephan Orlovsky, Sep 18 2008 *)
Transpose[NestList[{Last[#], Total[#]}&, {2, 14}, 40]][[1]] (* Harvey P. Dale, Apre 13 2011 *)
LinearRecurrence[{1, 1}, {2, 14}, 40] (* Harvey P. Dale, Oct 05 2019 *)
PROG
(PARI) for(n=0, 50, print1(2*(Fibonacci(n+2) + 5*Fibonacci(n)), ", ")) \\ G. C. Greubel, Aug 27 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved