Commit 2025-06-29 08:52 f8aa277c
View on Github →feat:(RingTheory/ZMod/CyclicUnits): characterize when (ZMod n)ˣ is cyclic (#26020)
Prove that the group (ZMod n)ˣ is cyclic iff one of the following mutually exclusive cases happens:
n = 0(thenZMod 0 ≃+* ℤand the group of units is cyclic of order 2);n=1,2or4nis a powerp ^ eof an odd prime number, or twice such a power (with1 ≤ e). Some individual cases are proved in passing and are also directly provided by (n= 0, 1, 2, 4, 8, prime, prime powers). This is a new PR of #25879 after the migration via fork. See that PR for the preceding discussion.