OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (5,11).
FORMULA
G.f.: x/(1 - 5*x - 11*x^2).
a(n) = 5*a(n-1) + 11*a(n-2).
MATHEMATICA
a[n_]:=(MatrixPower[{{1, 5}, {1, -6}}, n].{{1}, {1}})[[2, 1]]; Table[Abs[a[n]], {n, -1, 40}] (* Vladimir Joseph Stephan Orlovsky, Feb 20 2010 *)
CoefficientList[Series[x/(1-5x-11x^2), {x, 0, 30}], x] (* or *) LinearRecurrence[ {5, 11}, {0, 1}, 30] (* Harvey P. Dale, Dec 15 2011 *)
PROG
(Sage) [lucas_number1(n, 5, -11) for n in range(0, 21)]# Zerinvary Lajos, Apr 24 2009
(Magma) [n le 2 select n-1 else 5*Self(n-1) + 11*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 13 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved