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 (8,-14).
FORMULA
a(n) = ((2+3*sqrt(2))*(4+sqrt(2))^n + (2-3*sqrt(2))*(4-sqrt(2))^n)/4.
G.f.: (1-x)/(1-8*x+14*x^2).
E.g.f.: (cosh(sqrt(2)*x) + (3*sqrt(2)/2)*sinh(sqrt(2)*x))*exp(4*x). - G. C. Greubel, Sep 09 2017
MATHEMATICA
CoefficientList[Series[(1 - x)/(1 - 8*x + 14*x^2), {x, 0, 50}], x] (* or *) LinearRecurrence[{8, -14}, {1, 7}, 50] (* G. C. Greubel, Sep 09 2017 *)
PROG
(Magma) [ n le 2 select 6*n-5 else 8*Self(n-1)-14*Self(n-2): n in [1..21] ];
(PARI) x='x+O('x^50); Vec((1-x)/(1-8*x+14*x^2)) \\ G. C. Greubel, Sep 09 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Klaus Brockhaus, Aug 09 2009
STATUS
approved