Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 4.4.26* (If $p$ is a prime then $\lfloor (2+\sqrt{5})^p\rfloor \equiv 2^{p+1} \pmod {20p}$)

Exercise 4.4.26* (If $p$ is a prime then $\lfloor (2+\sqrt{5})^p\rfloor \equiv 2^{p+1} \pmod {20p}$)

Show that if p is a prime then ( 2 + 5 ) p 2 p + 1 ( mod 20 p ) .

Answers

Proof. Consider the sequence ( V n ) n defined by

V n = ( 2 + 5 ) n + ( 2 5 ) n ( n ) .

Let λ = 2 + 5 , μ = 2 5 , so that V n = λ n + μ n . Then λ + μ = 4 , λμ = 1 , thus λ , μ are the roots of the polynomial x 2 4 x 1 .

By Theorem 4.10, ( V n ) n is characterized by

n , V n + 2 = 4 V n + 1 + V n , (1) V 0 = 2 , V 1 = 4 . (2)

Since 1 < 2 5 < 0 , and p is odd, then 1 < ( 2 5 ) p < 0 , thus

( 2 + 5 ) p 1 < ( 2 + 5 ) p + ( 2 5 ) p < ( 2 + 5 ) p , so V p < ( 2 + 5 ) p < V p + 1 .

Therefore, if p is an odd prime,

( 2 + 5 ) p = V p .

It remains to show that V p 2 p + 1 ( mod 20 p ) .

If p = 5 , then V 5 = 1364 64 ( mod 100 ) , so V p 2 p + 1 ( mod 20 p ) is true for p = 5 . In the following, we will suppose that p 2 , p 5 , so that p 20 = 1 .

We look at the congruences modulo 4 , 5 , 20 and p .

  • Modulo 4.

    By (1), V n + 2 V n ( mod 4 ) , where V 1 0 ( mod 4 ) , thus V n 0 ( mod 4 ) for all odd integers n , so

    V p 0 2 p + 1 ( mod 4 ) . (3)
  • Modulo 5.

    We note that 2 2 4 2 + 1 ( mod 5 ) , thus 2 n + 3 4 2 n + 2 + 2 n + 1 ( mod 5 ) for all n . First V 0 = 2 2 1 , V 1 = 4 2 2 ( mod 5 ) . If we suppose that for some n , V n 2 n + 1 and V n + 1 2 n + 2 ( mod 5 ) , then V n + 2 = 4 V n + 1 + V n 4 2 n + 2 + 2 n + 1 2 n + 3 ( mod 5 ) . The induction is done, which proves that for all n , V n 2 n + 1 ( mod 5 ) . In particlular

    V p 2 p + 1 ( mod 5 ) . (4)
  • Modulo 20.

    Since 4 5 = 1 , we conclude from (3) and (4) that

    V p 2 p + 1 ( mod 20 ) . (5)
  • Modulo p.

    As in Problems 19, 20, 21, consider the sequence ( v n ) n 𝔽 p defined by

    v n = V n ¯ ( n ) ,

    where a ¯ denotes the class of a modulo p . Then, for all n ,

    v n + 2 = 4 v n + 1 + v n , v 0 = 2 ¯ , v 1 = 4 ¯ .

    The discriminant of the polynomial p ¯ ( x ) = x 2 4 ¯ x 1 is D ¯ = 20 ¯ . Moreover, using the law of quadratic reciprocity,

    ( D p ) = ( 20 p ) = ( 4 p ) ( 5 p ) = ( p 5 ) .

    So D ¯ is a square in 𝔽 p if and only if ( p 5 ) = 1 .

    • If ( p 5 ) = 1 , then p ¯ ( x ) has two roots α , β in 𝔽 p . Since 5 p and 2 p , then D ¯ 0 , thus α β .

      By induction, we obtain v n = α n + β n ( n ) , thus

      v p = α p + β p .

      By Fermat’s theorem, α p = α , β p = β , 2 ¯ p = 2 ¯ , thus v p = α + β = 4 ¯ = 2 ¯ p + 1 , so

      V p 2 p + 1 ( mod p ) .

    • If ( p 5 ) = 1 , then p ¯ ( x ) is irreducible over 𝔽 p . Then p ¯ ( x ) has two roots α , β in K , where K = 𝔽 p ( x ) ( p ¯ ( x ) ) is a quadratic extension of 𝔽 p .

      We proved in Problem 20 (see equality (8)) that

      α p = β , β p = α .

      Therefore

      v p = α p + β p = β + α = 4 ¯ .

      Since 2 ¯ p = 2 ¯ , we obtain v p = 2 p + 1 , so

      V p 2 p + 1 ( mod p ) .

    Since p 5 , there is no other case, and in both cases,

    V p 2 p + 1 ( mod p ) . (6)

    Since p 20 = 1 , (5) and (6) give

    V p 2 p + 1 ( mod 20 p ) . (7)

    We know that this is true also for p = 5 .

    In conclusion, for all odd prime p ,

    ( 2 + 5 ) p 2 p + 1 ( mod 20 p ) .

Note: There are two much odd composite numbers which satisfy this property, so there is no hope to obtain a good primality test. Up to 1000, they are

25 , 65 , 75 , 121 , 125 , 341 , 425 , 625 , 875 .

User profile picture
2025-03-07 10:57
Comments