OFFSET
1,2
COMMENTS
a(n) is a divisor of the Pisano period A001175(n^2).
FORMULA
a(n) = A001177(n^2)
EXAMPLE
a(4)=12, since Fib(12)=144==0(mod 4^2), but Fib(k) is not congruent to 0 modulo (4^2) for 1<=k<12.
MATHEMATICA
Join[{1}, Table[a = {0, 1}; k = 0; While[k++; s = Mod[Plus @@ a, n^2]; a = RotateLeft[a]; a[[2]] = s; a[[1]] != 0]; k, {n, 2, 60}]] (* T. D. Noe, Aug 08 2012 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hieronymus Fischer, Aug 24 2007
STATUS
approved