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 . If , the solution of is obviously . If , then is odd, and is the solution of . For all other use Problem 11 to show that the solution of is where is the nearest integer to .
Answers
Proof.
- If , then . If , then , so is the solution of when .
-
If , then , and , so is odd. Therefore is an integer, and
so is the solution of when .
-
Suppose now that , where . By Exercise 11, , where
Write . Then
This shows that is the nearest integer to .
As a conclusion, the solution of is where is the nearest integer to .