OFFSET
0,2
COMMENTS
Pisano period lengths: 1, 2, 8, 4, 12, 8, 6, 8, 24, 12, 24, 8, 28, 6, 24, 16, 16, 24, 40, 12,.. (is this A175181?) - R. J. Mathar, Aug 10 2012
LINKS
Index entries for linear recurrences with constant coefficients, signature (3,-1,-1).
FORMULA
a(n) = 2*a(n-1) + a(n-2) - 2, with a(0)=1, a(1)=2.
From R. J. Mathar, Mar 17 2010: (Start)
a(n) = A052937(n-1), n > 0.
a(n) = 3*a(n-1) - a(n-2) - a(n-3). (End)
EXAMPLE
a(2) = 2*a(1) + a(0) - 2 = 2*2 + 1 - 2 = 3
a(3) = 2*a(2) + a(1) - 2 = 2*3 + 2 - 2 = 6.
MATHEMATICA
LinearRecurrence[{3, -1, -1}, {1, 2, 3}, 31] (* Robert P. P. McKone, Apr 03 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 11 2010
STATUS
approved