Theorems · Theorem · number theory
Nat.Prime.emultiplicity_factorial
∀ {p : ℕ}, Nat.Prime p → ∀ {n b : ℕ}, Nat.log p n < b → emultiplicity p n.factorial = ↑(∑ i ∈ Finset.Ico 1 b, n / p ^ i)Legendre's Theorem
The multiplicity of a prime in n! is the sum of the quotients n / p ^ i. This sum is expressed
over the finset Ico 1 b where b is any bound greater than log p n.
- Defined in
- Mathlib.Data.Nat.Multiplicity
- Cited by
- 5 results in Mathlib
- Foundations
- Depth 84 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites7
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finset.sumstatement · cited by 5,195
- ENatstatement · cited by 4,985
- Nat.Primestatement and proof · cited by 2,059
- Nat.factorialstatement · cited by 616
- Finset.Icostatement · cited by 450
- emultiplicitystatement · cited by 156
- Nat.logstatement and proof · cited by 101
Cited by5
Results whose statement or proof uses this declaration.
- Nat.Prime.emultiplicity_choose'proof · cited by 2
- padicValNat_factorialproof · cited by 1
- Nat.Prime.pow_dvd_factorial_iffproof · cited by 0
- Nat.Prime.sub_one_mul_multiplicity_factorialproof · cited by 0
- Nat.Prime.emultiplicity_factorial_le_div_predproof · cited by 0