The p-adic valuation on natural numbers #
For p ≠ 1, the p-adic valuation of a natural n ≠ 0 is the largest natural number k such
that p^k divides n. If n = 0 or p = 1, then padicValNat p n defaults to 0.
Equations
- padicValNat p n = (p.maxPowDvdDiv n).1
Instances For
If p > 1, n > 0, then the first component of maxPowDvdDiv is the maximal power of p
that divides n.
Alias of padicValNat.
For p ≠ 1, the p-adic valuation of a natural n ≠ 0 is the largest natural number k such
that p^k divides n. If n = 0 or p = 1, then padicValNat p n defaults to 0.
Equations
Instances For
Alias of padicValNat_base_mul.
Alias of padicValNat_base_pow_mul.
Alias of the reverse direction of Nat.pow_dvd_iff_le_padicValNat.
If p > 1, n > 0, then the first component of maxPowDvdDiv is the maximal power of p
that divides n.
Alias of pow_padicValNat_dvd.
Alias of padicValNat_zero_right.
Alias of padicValNat_zero_left.