Units congruent to one modulo a prime #
For a prime p, the units of ZMod (p ^ (k + 1)) that reduce to 1 in ZMod p form the kernel
of the reduction ZMod.unitsMap. That kernel has p ^ k elements, so raising to a power n
coprime to p permutes it. In particular, for an odd prime p every unit congruent to one
modulo p is a square modulo every power of p. This is the finite-level, group-order form of
the Hensel argument for principal units.
Consequently, for n coprime to p and an integer a prime to p, reduction modulo p is a
bijection from the n-th roots of a modulo p ^ k (k ≠ 0) to those modulo p. Surjectivity
is Hensel's lemma TauCeti.HenselianLocalRing.exists_pow_eq_of_residue_pow_eq in the Henselian
local ring ZMod (p ^ k), and injectivity holds because two n-th roots of a with the same
reduction differ by a principal unit whose n-th power is 1.
Main results #
ZMod.card_ker_unitsMap_mul_totient: forn ∣ mwithm ≠ 0, the kernel of(ZMod m)ˣ → (ZMod n)ˣhasφ m / φ nelements.ZMod.card_ker_unitsMap_prime_pow: the kernel of(ZMod (p ^ (k + 1)))ˣ → (ZMod p)ˣhasp ^ kelements.ZMod.existsUnique_pow_eq_of_unitsMap_eq_one: forncoprime top, a unit congruent to one modulophas a uniquen-th root among the units congruent to one modulop.ZMod.isSquare_of_unitsMap_eq_one: for an odd primep, a unit ofZMod (p ^ (k + 1))congruent to one modulopis a square.ZMod.natCard_nthRoots_prime_pow_eq_natCard_nthRoots: forncoprime top, a unitahas as manyn-th roots modulop ^ kas modulop.
References #
- Keith Conrad, Hensel's lemma, Example 2.8.
n-th roots of units congruent to one modulo a prime. If n is coprime to the prime
p, every unit of ZMod (p ^ (k + 1)) congruent to one modulo p has exactly one n-th root
among the units congruent to one modulo p.
Units congruent to one modulo an odd prime are squares. For an odd prime p, every unit
of ZMod (p ^ (k + 1)) whose reduction to ZMod p is 1 is a square of a unit.
Hensel's lemma for n-th roots, as a count. For n coprime to the prime p, an integer
a prime to p and k ≠ 0, reduction modulo p is a bijection from the n-th roots of a
modulo p ^ k to those modulo p; so there are equally many.
Modulo 9, the units 4 and 7 are 2 ^ 2 and 4 ^ 2. The hypothesis that p is odd is
needed: 5 is congruent to one modulo 2 but is not a square modulo 8.