Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.2.12* (Solution of $ax \equiv 1 \pmod{m^s}$, second part)

Exercise 2.2.12* (Solution of $ax \equiv 1 \pmod{m^s}$, second part)

Suppose that ( a , m ) = 1 . If a = ± 1 , the solution of ax ≡ 1 ( mod m s ) is obviously x ≡ a ( mod m s ) . If a = ± 2 , then m is odd, and x ≡ 1 2 ( 1 − m s ) 1 2 a ( mod m s ) is the solution of ax ≡ 1 ( mod m s ) . For all other a use Problem 11 to show that the solution of ax ≡ 1 ( mod m s ) is x ≡ k ( mod m s ) where k is the nearest integer to − ( 1 ∕ a ) ( 1 − a x 1 ) s .

Answers

Proof.

  • If a = ± 1 , then a 2 = 1 . If x ≡ a ( mod m s ) , then ax ≡ a 2 ≡ 1 ( mod m s ) , so a is the solution of ax ≡ m s when a = ± 1 .
  • If a = ± 2 , then a 2 = 4 , and m ∧ 2 = 1 , so m is odd. Therefore x s = 1 − m s 2 a 2 is an integer, and

    a [ 1 − m s 2 a 2 ] = 1 − m s ≡ 1 ( mod m s ) ,

    so x s = 1 − m s 2 a 2 is the solution of ax ≡ m s when a = ± 2 .

  • Suppose now that | a | ≥ 3 , where a ∧ m = 1 . By Exercise 11, a x s ≡ 1 ( mod m s ) , where

    x s = 1 − ( 1 − a x 1 ) s a = k ∈ ℤ .

    Write y s = − ( 1 − a x 1 ) s a . Then

    | k − y s | = 1 | a | ≤ 1 3 .

    This shows that k = x s is the nearest integer to y s = − ( 1 − a x 1 ) s a .

    As a conclusion, the solution of ax ≡ 1 ( mod m s ) is x ≡ k ( mod m s ) where k is the nearest integer to − ( 1 ∕ a ) ( 1 − a x 1 ) s .

□
User profile picture
2024-08-09 08:21
Comments