Exercise · Volume 1 · 1.2.6-12
Exercise 1.2.6-12
proved in Lean solution written
| Rating | M22 |
|---|---|
| Markers | M (mathematical) |
| Kind | K3, find a value: compute a number, a set or a closed form from the written solution |
| Section | Section 1.2.6 of Volume 1. Companion chapter: Binomial coefficients |
The task
Find all positive such that every nonzero entry of row of Pascal's triangle is odd.
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 Exercise 1.2.6-10 with .
Hint 2
Compare the binary digits of and .
Solution
Show the solution
The answer is: exactly the numbers , with .
By Exercise 1.2.6-10 (f) with , where are the binary digits of and . Each factor is if and if , . So is odd exactly when every binary digit of is at most the digit of in the same place.
Assume . Then has digits, all equal to . Every with has at most digits, so each digit of is at most , and is odd for all such .
Assume is not of the form . Then the binary form of has a digit below its leading digit, say at place , and the leading digit is at place . Take . Then , so is in the row, but the digit of at place is and that of is . So is even.
Check
Rows are ; ; ; the row has only odd entries, and the first values are . Row is and has an even entry, and is not a power of . A direct test with up to finds exactly .
Remarks
If has digits equal to in binary, exactly entries of row are odd. This gives the self-similar pattern of the triangle modulo .
This solution is drafted, 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_6.Ex12.statementaxioms: propext - Solution:
TAOCP.S1_2_6.Ex12.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.