Multiplicative order of a modulo n: the least k > 0 with
a ^ k % n = 1 % n when 1 < n and Nat.Coprime a n, and 0 on every
other input.
Equations
Instances For
theorem
Hex.Nat.prime_pow_dvd_orderOf
{q j m a p : Nat}
(hq : Prime q)
(hj : q ^ j ∣ m)
(h1 : 1 < p)
(hm : a ^ m % p = 1 % p)
(hne : a ^ (m / q) % p ≠ 1 % p)
:
Prime-power extraction into the order: if q ^ j ∣ m, a ^ m ≡ 1, and
a ^ (m / q) ≢ 1 modulo p, then q ^ j divides the order of a. Stated
with q ^ j ∣ m as a hypothesis so no valuation API is needed.