Exercise · Volume 1 · 1.2.4-27
Exercise 1.2.4-27
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
Count the integers in that are relatively prime to when is a prime and when .
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
Decide which with have a common divisor greater than with .
Hint 2
Only the prime can divide both. Count the multiples of .
Solution
Show the solution
Let . Claim: if and only if . If , then is a common divisor greater than . If and , then some prime divides both and . By Euclid's lemma, , so , which contradicts . So the claim holds. (The case is covered: and .)
The multiples of in are with . There are of them. So
For this is : only is excluded.
Check
, , , , , , . A count with the gcd for gives , and the prime powers in this list agree with the formula.
Remarks
Exercise 1.2.4-30 shows that is multiplicative, so these values give for every . Exercise 1.2.4-28 uses in Euler's theorem.
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.Ex27.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex27.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.