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,-11).
FORMULA
a(n) = 8*a(n-1)-11*a(n-2) for n > 1; a(0) = 1, a(1) = 5.
G.f.: (1-3*x)/(1-8*x+11*x^2).
E.g.f.: exp(4*x)*(5*cosh(sqrt(5)*x) + sqrt(5)*sinh(sqrt(5)*x))/5. - Stefano Spezia, Oct 25 2023
MATHEMATICA
LinearRecurrence[{8, -11}, {1, 5}, 30] (* Harvey P. Dale, Dec 11 2017 *)
PROG
(Magma) Z<x>:=PolynomialRing(Integers()); N<r>:=NumberField(x^2-5); S:=[ ((5+r)*(4+r)^n+(5-r)*(4-r)^n)/10: n in [0..20] ]; [ Integers()!S[j]: j in [1..#S] ]; // Klaus Brockhaus, Jul 24 2009
(PARI) x='x+O('x^30); Vec((1-3*x)/(1-8*x+11*x^2)) \\ G. C. Greubel, Jan 08 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Al Hakanson (hawkuu(AT)gmail.com), Jul 20 2009
EXTENSIONS
Edited and extended beyond a(5) by Klaus Brockhaus, Jul 24 2009
STATUS
approved