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*(1+5*x)/(1-x-x^2). - Philippe Deléham, Nov 19 2008
a(n) = 2*A022096(n). - R. J. Mathar, Sep 27 2014
a(n) = 2*(Fibonacci(n+2) + 4*Fibonacci(n)). - G. C. Greubel, Aug 27 2017
MATHEMATICA
a={}; b=2; c=12; 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 *)
Table[2*(Fibonacci[n + 2] + 4*Fibonacci[n]), {n, 0, 50}] (* or *) LinearRecurrence[{1, 1}, {2, 12}, 50] (* G. C. Greubel, Aug 27 2017 *)
PROG
(PARI) for(n=0, 50, print1(2*(fibonacci(n+2) + 4*fibonacci(n)), ", ")) \\ G. C. Greubel, Aug 27 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved