OFFSET
1,1
COMMENTS
Binomial transform is A162562.
LINKS
FORMULA
a(n) = (3-2*(-1)^n)*3^(1/4*(2*n-1+(-1)^n)).
G.f.: x*(5+3*x)/(1-3*x^2)
MATHEMATICA
nxt[{a_, b_}]:={b, 3a}; NestList[nxt, {5, 3}, 40][[All, 1]] (* or *) LinearRecurrence[ {0, 3}, {5, 3}, 40] (* Harvey P. Dale, May 29 2021 *)
PROG
(Magma) [ n le 2 select 7-2*n else 3*Self(n-2): n in [1..34] ];
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Jul 20 2009
EXTENSIONS
a(35)-a(36) from Yifan Xie, Jul 20 2022
STATUS
approved