OFFSET
0,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (12,-34).
FORMULA
a(n) = ((5+3*sqrt(2))*(6+sqrt(2))^n+(5-3*sqrt(2))*(6-sqrt(2))^n)/2.
G.f.: (5-24*x)/(1-12*x+34*x^2).
E.g.f.: (5*cosh(sqrt(2)*x) + 3*sqrt(2)*sinh(sqrt(2)*x))*exp(6*x). - G. C. Greubel, Sep 11 2017
MATHEMATICA
LinearRecurrence[{12, -34}, {5, 36}, 50] (* G. C. Greubel, Sep 11 2017 *)
PROG
(Magma) [ n le 2 select 31*n-26 else 12*Self(n-1)-34*Self(n-2): n in [1..19] ];
(PARI) x='x+O('x^50); Vec((5-24*x)/(1-12*x+34*x^2)) \\ G. C. Greubel, Sep 11 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Aug 10 2009
STATUS
approved