OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..2000
Index entries for linear recurrences with constant coefficients, signature (0,2).
FORMULA
a(n) = (2+(-1)^n)*2^(1/4*(2*n-1+(-1)^n)).
G.f.: x*(1+6*x)/(1-2*x^2).
MATHEMATICA
LinearRecurrence[{0, 2}, {1, 6, 2, 12}, 50] (* G. C. Greubel, Aug 06 2017 *)
PROG
(Magma) [ n le 2 select 5*n-4 else 2*Self(n-2): n in [1..42] ];
(PARI) x='x+O('x^50); Vec(x*(1+6*x)/(1-2*x^2)) \\ G. C. Greubel, Aug 06 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Aug 05 2009
STATUS
approved
