Proof of Legendre's formula by counting multiples of prime powers
Builds on P-adic valuationP-adic valuation of a productFactorialFloor functionPrime number
Proof
- Let be a prime number and a natural number. If , then by the definition of the factorial. So , and every term is . Assume now .
- We have . Applying the valuation of a product times gives .
- Let and . By the definition of the p-adic valuation, holds if and only if . Indeed, if then , and if then by maximality.
- So is the number of integers with .
- Substituting step 4 into step 2 and counting the pairs the other way gives . Here is the number of with and .
- Only finitely many are nonzero, because implies .
- Fix and let . The multiples of in are the numbers with an integer and .
- An integer satisfies if and only if , by the definition of the floor function. So .
- Hence , where only finitely many terms are nonzero.
Idea
Each contributes factors of to . Count these factors by layers: every multiple of gives one, every multiple of gives one more, and so on. The number of multiples of up to is .
Reading path
To understand this page from the ground up, read these 69 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the approximation property of the supremum, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof that the reals form an ordered field, with the Cauchy sequence construction, Proof of strong induction from ordinary induction, Proof that the p-adic valuation of a product is the sum of the valuations, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof that the reals are Archimedean from the completeness axiom.
- Construction of the reals from Cauchy sequences concept
- Definition by recursion concept
- Divisibility definition
- Element definition
- Factorial definition
- Integers object
- Mathematical induction concept
- Natural numbers object
- Ordered field definition
- Peano axioms concept
- Proposition concept
- Rational numbers object
- Real numbers object
- Set bounded above definition
- Greatest common divisor definition
- Prime number definition
- Set definition
- Ring of integers statement
- Archimedean ordered field definition
- Successor function definition
- Implication definition
- Predicate definition
- The reals form a field statement
- Supremum definition
- Coprime integers definition
- P-adic valuation definition
- Ordered pair definition
- Addition of natural numbers definition
- The rationals form a field statement
- The successor function is injective statement
- Universal quantifier definition
- Zero is not a successor statement
- Completeness axiom statement
- Cartesian product definition
- Subset definition
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- The rationals form an ordered field statement
- Binary relation definition
- Order on the reals definition
- Commutativity of addition statement
- Proof of strong induction from ordinary induction proof
- Antisymmetric relation definition
- Reflexive relation definition
- Transitive relation definition
- Strong induction statement
- Preorder definition
- Proof of the well-ordering principle from strong induction proof
- Partial order definition
- Well-ordering principle statement
- Total order definition
- Proof of the division algorithm proof
- Division algorithm statement
- Proof that the reals form an ordered field, with the Cauchy sequence construction proof
- Proof of Bézout's identity proof
- The reals form an ordered field statement
- Bézout's identity statement
- Proof of the approximation property of the supremum proof
- Proof of the generalized Euclid's lemma proof
- Approximation property of the supremum statement
- Generalized Euclid's lemma statement
- Proof that the reals are Archimedean from the completeness axiom proof
- Proof of Euclid's lemma proof
- The reals are Archimedean statement
- Euclid's lemma statement
- Floor function definition
- Proof that the p-adic valuation of a product is the sum of the valuations proof
- P-adic valuation of a product statement
- Proof of Legendre's formula by counting multiples of prime powers proof
Where this leads
3 pages build on this one.
Further reading
About this page
| Tag | WFYM20H4MK |
|---|---|
| URI | m2://WFYM20H4MK |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A51 |
| Proves | Legendre's formula |
| Uses | P-adic valuation, P-adic valuation of a product, Factorial, Floor function, Prime number |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.