OFFSET
0,3
COMMENTS
Pisano period lengths: 1, 1, 1, 1, 12, 1, 4, 2, 3, 12, 15, 1, 168, 4, 12, 4, 288, 3, 18, 12, ... - R. J. Mathar, Aug 10 2012
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Lucyna Trojnar-Spelina and Iwona Włoch, On Generalized Pell and Pell-Lucas Numbers, Iranian Journal of Science and Technology, Transactions A: Science (2019), 1-7.
Index entries for linear recurrences with constant coefficients, signature (7,6).
FORMULA
a(n) = 7*a(n-1) + 6*a(n-2).
MATHEMATICA
LinearRecurrence[{7, 6}, {0, 1}, 30] (* Vincenzo Librandi, Nov 14 2012 *)
CoefficientList[Series[x/(1-7x-6x^2), {x, 0, 20}], x] (* Harvey P. Dale, Dec 04 2024 *)
PROG
(Sage) [lucas_number1(n, 7, -6) for n in range(0, 21)] # Zerinvary Lajos, Apr 24 2009
(Magma) [n le 2 select n-1 else 7*Self(n-1) + 6*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 14 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-7*x-6*x^2))) \\ G. C. Greubel, Dec 30 2017
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
STATUS
approved