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