Exercise · Volume 1 · 1.2.4-30
Exercise 1.2.4-30
proved in Lean solution written
| Rating | M30 |
|---|---|
| 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
Prove that is multiplicative, compute , and give a rule for from the prime factors of .
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
Pair each in with the two remainders .
Hint 2
Law D shows that this pairing is one-to-one when . Count the pairs in which both parts are relatively prime to their moduli.
Hint 3
Then use the values of Exercise 1.2.4-27.
Solution
Show the solution
Plan. Step 1: if and only if and . Step 2: the pairing is a bijection between the set and the set of pairs . Step 3: the pairing keeps the relatively prime property. Count.
Let , both positive.
Step 1. If , a common divisor of and divides , so , and the same holds for . Conversely let and . If , a prime divides and . By Euclid's lemma or , so is a common divisor of with or with . This is impossible.
Step 2. Map to . If two numbers , in have the same image, then modulo and modulo . By Law D (Exercises 1.2.4-17 and 1.2.4-18), . Both lie in , so . The map is one-to-one. The two sets have elements each, so the map is onto.
Step 3. For each , , since shows that a common divisor of and divides , and conversely. The same holds for . So by Step 1, if and only if its image has and .
Count. By Steps 2 and 3, the in with correspond one to one to the pairs with , , and , . There are choices for and for . So .
The value. and . By Exercise 1.2.4-27, and . So .
The rule. Let with distinct primes and . The factors are pairwise relatively prime, and each is relatively prime to the product of the others. By induction on with the multiplicative property,
and for the empty product.
Check
: the numbers . By the rule, . A direct count by the gcd gives , and the multiplicative property holds for all coprime pairs in a computer run.
Remarks
The pairing in Step 2 is the Chinese remainder theorem. The book's answer takes another route: it builds the numbers relatively prime to from those for and for . By Exercise 1.2.4-31 the sum is multiplicative, and it equals on prime powers, so it equals for every .
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.Ex30.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_4.Ex30.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.