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