OFFSET
0,3
COMMENTS
Pisano period lengths: 1, 2, 2, 4, 4, 2, 24, 4, 6, 4, 120, 4, 84, 24, 4, 8, 16, 6, 171, 4, ... - R. J. Mathar, Aug 10 2012
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,3).
FORMULA
a(n) = 8*a(n-1) + 3*a(n-2).
MATHEMATICA
LinearRecurrence[{8, 3}, {0, 1}, 30] (* Vincenzo Librandi, Nov 14 2012 *)
PROG
(Sage) [lucas_number1(n, 8, -3) for n in range(0, 20)] # Zerinvary Lajos, Apr 25 2009
(Magma) [n le 2 select n-1 else 8*Self(n-1) + 3*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 14 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-8*x-3*x^2))) \\ G. C. Greubel, Jan 06 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved