Exercise · Volume 1 · 1.2.5-2
Exercise 1.2.5-2
proved in Lean solution written
| Rating | 10 |
|---|---|
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.5 of Volume 1. Companion chapter: Permutations and factorials |
The task
Show that the number of ways to arrange of objects equals the number of ways to arrange all , and give the reason.
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
Use eq. (2): is a product of factors, and in eq. (18) is the same product.
Hint 2
Write both products out and compare their last factors.
Solution
Show the solution
By eq. (2), , a product of factors. For the last factor is . For the last factor is . So
The reason is that the last factor is . After places are filled, exactly one object is left, and it must go to the last place. A choice of objects in a row, with order, therefore fixes the full row. Each full row cuts down to one -row by dropping its last object, and this map is a bijection. The case is the equality .
Check
For : and . Python: math.perm(4, 3) == math.perm(4, 4) == 24, and the same holds for .
Remarks
Both counts equal . For the counts and differ, because the next factor is at least . Exercise 1.2.5-3 uses the same rule to build the permutations of objects from those of .
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_5.Ex2.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_5.Ex2.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.