OFFSET
0,3
COMMENTS
Pisano period lengths: 1, 3, 4, 6, 20, 12, 48, 6, 12, 60, 5, 12,168, 48, 20, 12,288, 12, 6, 60,... - 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 (9,11).
FORMULA
a(n) = 9*a(n-1) + 11*a(n-2).
MATHEMATICA
Join[{a=0, b=1}, Table[c=9*b+11*a; a=b; b=c, {n, 40}]] (* Vladimir Joseph Stephan Orlovsky, Mar 29 2011 *)
LinearRecurrence[{9, 11}, {0, 1}, 30] (* Vincenzo Librandi, Nov 15 2012 *)
PROG
(Sage) [lucas_number1(n, 9, -11) for n in range(0, 19)] # Zerinvary Lajos, Apr 26 2009
(Magma) [n le 2 select n-1 else 9*Self(n-1) + 11*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Nov 15 2012
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-9*x-11*x^2))) \\ G. C. Greubel, Jan 06 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved