Exercise · Volume 1 · 1.2.6-11
Exercise 1.2.6-11
proved in Lean solution written
| Rating | M20 |
|---|---|
| Markers | M (mathematical) |
| Kind | K1, prove: show that a stated fact is true from the written solution |
| Section | Section 1.2.6 of Volume 1. Companion chapter: Binomial coefficients |
The task
Show that the exact power of a prime in is the number of carries when and are added in base .
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
Count the exponent of in a factorial with Legendre's formula, as in Exercise 1.2.6-4.
Hint 2
Rewrite Legendre's formula with the digit sum of in base .
Hint 3
Compare with when carries happen. Each carry loses from the digit sum.
Solution
Show the solution
Let be the sum of the base digits of and the exponent of in .
Step 1: . By Exercise 1.2.6-4, . Write . Then , and summing over ,
Step 2: the exponent of in the coefficient. It is
Step 3: carries and the digit sum. Let be the digits of , and let be the carry out of position , with . The column rule of addition says , where is the digit of at position . Add these equations over all : The sum of over equals the sum of over , since . Call this common value , the number of carries. Then .
Step 4. By Step 2 the exponent of in is , the number of carries.
The form of the carry. The carry out of position is exactly when the numbers formed by the lowest digits, which are and , have a sum of at least . This is the criterion of the formal statement. Beyond the position of the highest digit of there are no carries, so the count is finite.
Check
Take , , . In binary gives carries out of positions and , that is carries. And . Take , , : has two carries, and has .
Remarks
The case of exponent zero says that does not divide exactly when the addition has no carry, which agrees with Lucas's rule in Exercise 1.2.6-10. For it gives Exercise 1.2.6-12 again. The theorem is due to Kummer (1852).
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.Ex11.statementaxioms: Classical.choice, Quot.sound, propext - Solution:
TAOCP.S1_2_6.Ex11.solvedaxioms: Classical.choice, Quot.sound, propext
The status is computed from the Lean build. The node of the map.
Something is wrong? Report it.