The number of -th roots in a finite cyclic group
ProvedCyclicGroups.card_pow_eq_le_gcdThe number of -th roots of an element in a finite cyclic group.
Let be a finite cyclic group of order and let . Then the equation has at most solutions:
The bound is sharp and the behaviour is all-or-nothing: the map is a group homomorphism whose kernel is the set of -th roots of unity, which in a cyclic group of order has size exactly . Consequently every fibre of is either empty (when is not a -th power) or a coset of that kernel, hence of size exactly .
Taking recovers the familiar statement that a cyclic group of order contains exactly elements of order dividing — equivalently, that has exactly solutions, the cyclic-group counterpart of the fact that a polynomial of degree over a field has at most roots.
Counts of this kind are the standard input when evaluating character sums or counting solutions of in , which is cyclic of order ; there the bound reads and underlies the theory of -th power residues.
Formalization note. The solution set is written as a Finset.filter over Finset.univ, so
its card is the number of solutions; IsCyclic G is Mathlib's cyclicity hypothesis.
import Mathlib
namespace CyclicGroups
theorem card_pow_eq_le_gcd {G : Type*} [CommGroup G] [Fintype G] [DecidableEq G] [IsCyclic G]
(k : ℕ) (a : G) :
(Finset.univ.filter (fun x : G => x ^ k = a)).card ≤ Nat.gcd k (Fintype.card G) := by sorry
end CyclicGroups