Theorems · Theorem · number theory
padicValNat_factorial
∀ {p n b : ℕ} [hp : Fact (Nat.Prime p)], Nat.log p n < b → padicValNat p n.factorial = ∑ i ∈ Finset.Ico 1 b, n / p ^ iLegendre's Theorem
The p-adic valuation of 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.
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 85 from the axioms · uses propext, Classical.choice, Quot.sound
- Assumes
- Fact
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites11
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finset.sumstatement · cited by 5,195
- Factstatement and proof · cited by 2,726
- Nat.Primestatement and proof · cited by 2,059
- Nat.factorialstatement · cited by 616
- Finset.Icostatement · cited by 450
- Fact.outproof · cited by 328
- padicValNatstatement · cited by 106
- Nat.logstatement and proof · cited by 101
- Nat.factorial_ne_zeroproof · cited by 56
- padicValNat_eq_emultiplicityproof · cited by 9
- Nat.Prime.emultiplicity_factorialproof · cited by 5
Cited by1
Results whose statement or proof uses this declaration.
- sub_one_mul_padicValNat_factorialproof · cited by 2