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
@[simp]
@[simp]
If p > 1, n > 0, then the first component of maxPowDvdDiv is the maximal power of p
that divides n.
@[simp]
@[simp]
@[simp]