Exercise · Volume 1 · 1.2.4-28
Exercise 1.2.4-28
proved in Lean solution written
| Rating | M25 |
|---|---|
| Markers | M (mathematical), recommended |
| 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
Prove Euler's theorem for , with the method used for Fermat's theorem.
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
Let be the set of numbers in that are relatively prime to . Show that multiplication by modulo maps to .
Hint 2
The map is one-to-one by Law B, so it is a permutation of . Multiply all elements of .
Solution
Show the solution
If , every congruence modulo holds. Let and , so . Let .
The map goes from to . For put , so for an integer . A common divisor of and divides , and a common divisor of and divides . So . If a prime divided , then or by Euclid's lemma, and in either case would be a common divisor of with or with , which is impossible. So , , and .
The map is one-to-one. If for , Law B gives , and since both lie in , . A one-to-one map of a finite set into itself is onto, so the numbers , , are the elements of in another order.
The product. Let . By Law A, . The left side is . So . The number is relatively prime to by the argument above (a prime that divides divides some factor ). Law B cancels and gives .
For the note: , since . So is an inverse of .
Check
: , . For the products leave the remainders , which is again. . A run over and with confirms (for the remainder is ).
Remarks
For a prime , , and the theorem becomes Fermat's theorem in the form of Exercise 1.2.4-25. The inverse through the power is slower than the extended algorithm of Exercise 1.2.4-19 when is not known.
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.Ex28.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex28.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.