Exercise 4.4.22* (Congruences in the Fibonacci sequence)

Let p be a prime number. Show that F p p 5 ( mod p ) . Show that F p + 1 1 ( mod p ) if p ± 1 ( mod 5 ) , and that F p + 1 0 ( mod p ) if p ± 2 ( mod 5 ) . Show that F p 1 0 ( mod p ) if p ± 1 ( mod 5 ) , and that F p 1 1 ( mod p ) if p ± 2 ( mod 5 ) . Conclude that if p ± 1 ( mod 5 ) then p 1 is a period of F n ( mod p ) . (This is not necessarily the least period.) Conclude also that if p ± 2 ( mod 5 ) then 2 p + 2 is a period of F n ( mod p ) .

Answers

Proof.

We treat separately the case p = 2 . If p = 2 , then F 2 = 1 and ( 2 5 ) = 1 , so F 2 ( 2 5 ) ( mod 2 ) . We prove by induction that

𝒫 ( k ) : F 3 k 0 ( mod 2 ) , F 3 k + 1 F 3 k + 2 1 ( mod 2 ) .
  • F 0 = 0 0 ( mod 2 ) and F 1 = F 2 = 1 1 ( mod 3 ) .
  • Suppose now that 𝒫 ( k ) is true. Then

    F 3 k + 3 = F 3 k + 2 + F 3 k + 1 1 + 1 0 ( mod 2 ) , F 3 k + 4 = F 3 k + 3 + F 3 k + 2 0 + 1 1 ( mod 2 ) , F 3 k + 5 = F 3 k + 4 + F 3 k + 3 1 + 0 1 ( mod 2 ) .

    Thus 𝒫 ( k + 1 ) is true, and the induction is done.

In conclusion

F k 0 ( mod 2 ) k 0 ( mod 3 ) , F k 1 ( mod 2 ) k ± 1 ( mod 3 ) .

Therefore the results of the problem are true for p = 2 , in the case p 2 ( mod 5 ) . In particular 6 = 2 p + 2 is a period, but not the least period.

In the rest of the problem we suppose that p is an odd prime.

(a)

We note that F p = U p ( 1 , 1 ) . The associate discriminant D of x 2 x 1 is D = 5 . Then Problem 20 gives

F p ( 5 p ) ( mod 5 ) .

(b)
By the law of quadratic reciprocity, ( 5 p ) = ( p 5 ) .

Therefore,

( 5 p ) = 1 ( p 5 ) = 1 p ± 1 ( mod 5 ) , ( 5 p ) = 1 ( p 5 ) = 1 p ± 2 ( mod 5 ) .
  • If p ± 1 ( mod 5 ) , then ( 5 p ) = ( D p ) = 1 . By Problem 19,

    F p + 1 1 ( mod p ) .

  • If p ± 2 ( mod 5 ) , then ( 5 p ) = ( D p ) = 1 . We proved in the solution of Problem 19 that

    2 U p + 1 ( a , b ) a ( 1 + ( D p ) ) ( mod p ) .

    Therefore

    2 F p + 1 ( 1 + ( D p ) ) 0 ( mod p ) .

    Since p is odd,

    F p + 1 0 ( mod p ) .

In conclusion,

F p + 1 1 ( mod p )  if  p ± 1 ( mod 5 ) , (1) F p + 1 0 ( mod p )  if  p ± 2 ( mod 5 ) , (2)
(c)
  • If p ± 1 ( mod 5 ) , then ( D p ) = ( 5 p ) = 1 . By Problem 21, since b = 1

    F p 1 = U p 1 ( 1 , 1 ) = b U p 1 ( 1 , 1 ) 0 ( mod p ) .

  • If p ± 2 ( mod 5 ) , then ( D p ) = ( 5 p ) = 1 . By the congruence (9) in the solution of Problem 21, using a = b = 1

    F p 1 = b U p 1 ( a , b ) a = 1 ( mod p ) .

    In conclusion,

    F p 1 0 ( mod p )  if  p ± 1 ( mod 5 ) , (3) F p 1 1 ( mod p )  if  p ± 2 ( mod 5 ) , (4)
(d)
  • If p ± 1 ( mod 5 ) , then by (3), F p 1 0 ( mod p ) . We will prove that p 1 is a period modulo p , i.e. F i + p 1 F i for all i .

    • First proof, with my methods.

      Here we write a ¯ the class of a in pℤ .

      As in the second solution of Problem 19, consider the sequence ( f n ) n defined for all n by f n = F n ¯ pℤ , so that

      f n + 2 = f n + 1 + f n , f 0 = 0 ¯ , f 1 = 1 ¯ , (5)

      Here ( 5 p ) = 1 , thus there exists δ 𝔽 p such that δ 2 = D ¯ = 5 ¯ , so there are two distinct roots α , β 𝔽 p of x 2 x 1 𝔽 p [ x ] .

      By induction, we obtain for all n ,

      f n = α n β n α β . (6)

      Here αβ = 1 ¯ , thus α 0 ¯ , β 0 ¯ . By Fermat’s theorem, α p 1 = β p 1 = 1 ¯ . Therefore

      f i + p 1 = α i + p 1 β i + p 1 α β = α i β i α β = f i .

      This shows that for all i ,

      F i + p 1 F i ( mod p ) .

    • Second proof, with the methods of Lucas (for which I have great respect and admiration).

      If λ , μ are the complex roots of x 2 x 1 , then F n = ( λ n μ n ) ( λ μ ) . We define

      U n = U n ( 1 , 1 ) = λ n μ n λ μ = F n , V n = V n ( 1 , 1 ) = λ n + μ n .

      We need an addition formula: for all n , m ,

      2 U n + m = U n V m + V n U m . (7)

      Indeed,

      U n V m + V n U m = λ n μ n λ μ ( λ m + μ m ) + ( λ n + μ n ) λ m μ m λ μ = λ n + m μ n + m λ μ = 2 U n + m .

      By (3), U p 1 = F p 1 0 ( mod p ) . By the formula (5) in the solution of Problem 21, since ( D p ) = 1 , we know that V p 1 2 ( mod p ) . Then, using (7),

      2 U i + p 1 = U i V p 1 + V i U p 1 2 U i ( mod p )

      Since p is an odd prime, U i + p 1 U i ( mod p ) , so for all i .

      F i + p 1 F i ( mod p ) .

  • If p ± 2 ( mod 5 ) , by (2), F p + 1 0 ( mod p ) . We will prove that 2 p + 2 is a period modulo p , i.e. F i + 2 p + 2 F i for all i .

    Here ( D p ) = 1 , then as in Problem 20, D ¯ = 5 ¯ has a square root δ in some quadratic extension K of 𝔽 p with p 2 elements. Let α and β be the distinct roots of p ( x ) in K . Then formulas (5) and (6) remain true and by the second proof of Problem 20,

    α p = β = β p = α .

    Therefore, for all i ,

    f i + p + 1 = α i + p + 1 β i + p + 1 α β = β α i + 1 α β i + 1 α β = αβ α i β i α β = f i ,

    so f i + p + 1 = f i for all i , thus f i + 2 p + 2 = f i + p + 1 = f i . Therefore

    F i + 2 p + 2 F i ( mod p ) .

    So 2 p + 2 is a period modulo p of the sequence ( F n ) n (note that p + 1 is an anti-period, if this word exists).

    (We leave the proof with Lucas’s methods to the patient reader.)

User profile picture
2025-03-01 10:28
Comments