Exercise · Volume 1 · 1.2.4-14
Exercise 1.2.4-14
proved in Lean solution written
| Rating | 12 |
|---|---|
| Markers | recommended |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Find when and .
The exact wording is in your copy of the book.
Hints
Open one hint at a time. Try the exercise again after each.
Hint 1
Look for a number that has the same two remainders. Then compare it to .
Hint 2
Law D turns two congruences with relatively prime moduli into one congruence modulo the product.
Solution
Show the solution
Search for a small number with both remainders. The numbers with remainder modulo are . Of these, , . So has both remainders.
Now and , since both sides have the same remainder. Since , Law D gives . Since , the remainder is (Exercise 1.2.4-16).
Check
Take : , and . Take : , and . Among only has both remainders.
Remarks
This is the smallest case of the Chinese remainder theorem. The solution is unique modulo : two solutions differ by a number that both and divide, so by a multiple of .
This solution is checked, and a person has not reviewed it yet. The source.
In Lean
proved The statement and its proof are in Lean. The kernel accepts the proof, and it uses the standard axioms only.
- Problem:
TAOCP.S1_2_4.Ex14.statementaxioms: none - Solution:
TAOCP.S1_2_4.Ex14.solvedaxioms: Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.