OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (12, -30).
FORMULA
a(n) = ((3+2*sqrt(6))*(6+sqrt(6))^n+(3-2*sqrt(6))*(6-sqrt(6))^n)/6.
G.f.: (1-2*x)/(1-12*x+30*x^2).
MATHEMATICA
LinearRecurrence[{12, -30}, {1, 10}, 20] (* Harvey P. Dale, Apr 19 2019 *)
PROG
(Magma) [ n le 2 select 9*n-8 else 12*Self(n-1)-30*Self(n-2): n in [1..20] ];
(PARI) a(n)=([0, 1; -30, 12]^n*[1; 10])[1, 1] \\ Charles R Greathouse IV, May 28 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Klaus Brockhaus, Aug 15 2009
STATUS
approved
