OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..200
Index entries for linear recurrences with constant coefficients, signature (4,5).
FORMULA
a(n) = 4*a(n-1) + 5*a(n-2), a(0)=1, a(1)=2.
G.f.: (1-2*x)/((1+x)*(1-5*x)).
E.g.f.: exp(2*x) * cosh(3*x).
a(n) = ((2+sqrt(9))^n+(2-sqrt(9))^n)/2. - Al Hakanson (hawkuu(AT)gmail.com), Dec 08 2008
a(n) = sum( k=0..n, A201730(n,k)*8^k ). - Philippe Deléham, Dec 06 2011
MATHEMATICA
CoefficientList[Series[(1 - 2 x) / ((1 + x) (1 - 5 x)), {x, 0, 20}], x] (* Vincenzo Librandi, Aug 08 2013 *)
PROG
(Sage) [lucas_number2(n, 4, -5)/2 for n in range(0, 22)] # Zerinvary Lajos, May 14 2009
(PARI) a(n)=(5^n+(-1)^n)/2 \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Mar 18 2003
STATUS
approved