Exercise · Volume 1 · 1.2.4-12
Exercise 1.2.4-12
proved in Lean solution written
| Rating | 00 |
|---|---|
| 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 all integers that are relatively prime to .
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
Two integers are relatively prime when their greatest common divisor is .
Solution
Show the solution
The positive divisors of are only . So for every integer , whatever its sign or its size. Every integer is relatively prime to .
Check
, and .
Remarks
The next exercise treats the other special modulus, . Every congruence modulo holds, since for every integer .
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.Ex12.statementaxioms: none - Solution:
TAOCP.S1_2_4.Ex12.solvedaxioms: Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.