OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-34).
FORMULA
a(n) = ((1+sqrt(2))*(6+sqrt(2))^n + (1-sqrt(2))*(6-sqrt(2))^n)/2.
G.f.: (1-4*x)/(1-12*x+34*x^2).
E.g.f.: 2*exp(6*x)*( cosh(sqrt(2)*x) + sqrt(2)*sinh(sqrt(2)*x) ). - G. C. Greubel, Dec 23 2016
MATHEMATICA
LinearRecurrence[{12, -34}, {1, 8}, 50] (* G. C. Greubel, Dec 23 2016 *)
PROG
(Magma) [ n le 2 select 7*n-6 else 12*Self(n-1)-34*Self(n-2): n in [1..20] ];
(PARI) Vec((1-4*x)/(1-12*x+34*x^2) + O(x^50)) \\ G. C. Greubel, Dec 23 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Klaus Brockhaus, Jul 27 2009
STATUS
approved