OFFSET
0,2
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (14, -46).
FORMULA
a(n) = ((3+sqrt(3))*(7+sqrt(3))^n+(3-sqrt(3))*(7-sqrt(3))^n)/6.
G.f.: (1-6*x)/(1-14*x+46*x^2).
MATHEMATICA
LinearRecurrence[{14, -46}, {1, 8}, 30] (* Harvey P. Dale, Apr 09 2012 *)
PROG
(Magma) [ n le 2 select 7*n-6 else 14*Self(n-1)-46*Self(n-2): n in [1..20] ];
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Jul 13 2009
STATUS
approved