A116515 a(n) = the period of the Fibonacci numbers modulo p divided by the smallest m such that p divides Fibonacci(m), where p is the n-th prime.
1, 2, 4, 2, 1, 4, 4, 1, 2, 1, 1, 4, 2, 2, 2, 4, 1, 4, 2, 1, 4, 1, 2, 4, 4, 1, 2, 2, 4, 4, 2, 1, 4, 1, 4, 1, 4, 2, 2, 4, 1, 1, 1, 4, 4, 1, 1, 2, 2, 1, 4, 1, 2, 1, 4, 2, 4, 1, 4, 2, 2, 4, 2, 1, 4, 4, 1, 4, 2, 1, 4, 1, 2, 4, 1, 2, 4, 4, 2, 2, 1, 4, 1, 4, 1, 2, 2, 4, 1, 2, 2, 1, 2, 1, 1, 2, 1, 1, 2, 1, 2, 4, 2, 2, 1
Offset: 1
Examples
a(4) = 2, as 7 is the 4th prime, the Fibonacci numbers mod 7 have period 16, the first Fibonacci number divisible by 7 is F(8) = 21 = 3*7 and 16 / 8 = 2. One period of the Fibonacci numbers mod 7 is 1, 1, 2, 3, 5, 1, 6, 0, 6, 6, 5, 4, 2, 6, 1, 0, which has two zeros. Hence a(4)=2. [From _T. D. Noe_, Jan 14 2009]
Comments