OFFSET
0,1
LINKS
FORMULA
a(n) = ((5+sqrt(3))*(3+sqrt(3))^n+(5-sqrt(3))*(3-sqrt(3))^n)/2.
G.f.: (5-12*x)/(1-6*x+6*x^2).
MATHEMATICA
LinearRecurrence[{6, -6}, {5, 18}, 40] (* Harvey P. Dale, Mar 26 2022 *)
PROG
(Magma) [ n le 2 select 13*n-8 else 6*Self(n-1)-6*Self(n-2): n in [1..22] ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com) and Klaus Brockhaus, Jul 14 2009
STATUS
approved