Legendre's Formula
Statement
For a prime and positive integer , .
Why is it true?
Legendre's formula is the standard tool for computing exact prime-power divisibility of factorials and binomial coefficients, and combined with Kummer's theorem it explains exactly which binomial coefficients are divisible by a given prime.
Proof sketch
**Step 1: Write as a sum over the factors.** By definition , so , the sum of the -adic valuation of every integer from to .
**Step 2: Rewrite each as a count.** For each , (using Iverson bracket notation, if true, if false), since is divisible by for exactly values of (namely ).
Step 3: Swap the order of summation. Substituting, , exchanging the (finite, so justified) double sum.
**Step 4: Count multiples of directly.** The inner sum counts how many integers from to are multiples of , which is exactly (the multiples are ).
Step 5: Conclude. Substituting back, , which is finite since once , completing the proof.
Topics that use this theorem
Step-by-step proofs
No step-by-step proof yet for this theorem.
References
- Andrew Granville, Thomas J. Tucker (2002). It's As Easy As abc
- Titu Andreescu, Dorin Andrica, Zuming Feng (2007). 104 Number Theory Problems: From the Training of the USA IMO Team
- Titu Andreescu, Dorin Andrica, Ion Cucurezeanu (2010). An Introduction to Diophantine Equations: A Problem-Based Approach