OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..500
Index entries for linear recurrences with constant coefficients, signature (4,5).
FORMULA
G.f.: x*(4-11*x)/(1 - 4*x - 5*x^2). - Bruno Berselli, May 24 2011
MATHEMATICA
LinearRecurrence[{4, 5}, {4, 5}, 40]
PROG
(Maxima) a[1]:4$ a[2]:5$ a[n]:=4*a[n-1]+5*a[n-2]$ makelist(a[n], n, 1, 24); /* Bruno Berselli, May 24 2011 */
(Magma) [5/2*(-1)^(n-1)+3/2*5^(n-1): n in [1..30]]; // Vincenzo Librandi, Jul 15 2011
(PARI) a(n)=5/2*(-1)^(n-1)+3/2*5^(n-1) \\ Charles R Greathouse IV, Jul 02 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Harvey P. Dale, Apr 26 2011
STATUS
approved