Fibonacci modulo p
The Fibonacci sequence is defined as F_i = F_{i-1} + F_{i-2} where F_1 = 1 and F_2 = 1 are the seeds. For a given prime number p, consider a new sequence which is (Fibonacci sequence) mod p. For example for p = 5, the new sequence would be 1, 1, 2, 3, 0, 3, 3, 1, 4, 0, 4, 4 ⦠The minimal zero of the