OFFSET
1,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..300
Index entries for linear recurrences with constant coefficients, signature (0, 8).
FORMULA
a(n) = (7-(-1)^n)*2^(1/4*(6*n -15+3*(-1)^n)).
G.f.: x*(1+6*x)/(1-8*x^2).
MATHEMATICA
LinearRecurrence[{0, 8}, {1, 6}, 40] (* Harvey P. Dale, Nov 06 2013 *)
PROG
(Magma) [ n le 2 select 5*n-4 else 8*Self(n-2): n in [1..26] ];
(PARI) a(n)=(7-(-1)^n)*2^(1/4*(6*n-15+3*(-1)^n)) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Aug 20 2009
EXTENSIONS
G.f. corrected by Klaus Brockhaus, Sep 18 2009
STATUS
approved