Exercise · Volume 1 · 1.2.4-18
Exercise 1.2.4-18
proved in Lean solution written
| Rating | M15 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.4 of Volume 1. Companion chapter: Integer functions and elementary number theory |
The task
Show that if modulo and modulo , and , then modulo . Use Law B.
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
Write and look at the factor .
Hint 2
The congruence modulo says that divides . Apply Law B to .
Solution
Show the solution
Since , the difference is for an integer (Exercise 1.2.4-17). Since , the number divides , so , and this is the congruence .
Apply Law B with the factor on both sides: and give . So for an integer , and . Hence .
Check
, : and differ by . Both and divide , and so does . For a pair that is not relatively prime (Exercise 1.2.4-23), , , satisfies both premises and the conclusion fails.
Remarks
With Exercise 1.2.4-17 this gives Law D in full. Repeated use gives: if are pairwise relatively prime, a congruence modulo each is a congruence modulo the product.
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.Ex18.statementaxioms: none - Solution:
TAOCP.S1_2_4.Ex18.solvedaxioms: Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.