Proof that the units of Z/nZ are the residues coprime to n
Builds on Integers modulo nResidue classUnit of a ringGreatest common divisorBézout's identity
Proof
We prove the two directions separately.
- Let and be integers. Write for the residue class of an integer modulo , so .
- In the ring the product is , and the identity is . The ring is commutative, because .
- If for an integer , then , so .
- If , then , so for an integer .
- First assume . By Bézout's identity, there are integers and with .
- Then . By step 3, .
- By step 2, also . So is a unit of , with inverse .
- Now assume that is a unit. Then there is a class with , that is, .
- By step 4, there is an integer with , so .
- Let be the greatest common divisor. It exists and , because , so and are not both .
- The integer divides and , so it divides .
- A positive divisor of is , so .
- Thus is a unit of if and only if .
Idea
An inverse of is an integer with for some integer . Bézout's identity gives such and exactly when . Conversely, such an equation forces every common divisor of and to divide .
Reading path
To understand this page from the ground up, read these 32 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the commutativity of addition by induction, Proof of strong induction from ordinary induction, Proof that congruence is compatible with addition, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm.
Show the path as a graph
- no evidence level
- Definition by recursion concept
- Divisibility definition
- Group concept
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Congruence modulo n definition
- Greatest common divisor definition
- Ring definition
- Successor function definition
- Residue class definition
- Proof that congruence is compatible with addition proof
- Proof that congruence is compatible with multiplication proof
- Unit of a ring definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Congruence is compatible with addition statement
- Congruence is compatible with multiplication statement
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers definition
- Integers modulo n definition
- Commutativity of addition statement
- Proof of strong induction from ordinary induction proof
- Strong induction statement
- Proof of the well-ordering principle from strong induction proof
- Well-ordering principle statement
- Proof of the division algorithm proof
- Division algorithm statement
- Proof of Bézout's identity proof
- Bézout's identity statement
- Proof that the units of Z/nZ are the residues coprime to n proof
Where this leads
12 pages build on this one.
- Existence of primitive roots modulo a prime
- Pépin's test
- Primitive root theorem
- Automorphism group of a cyclic group
- Units of Z/nZ are the residues coprime to n
- The group of units of Z/pZ is cyclic
- Order of the group of units of Z/nZ is Euler's totient
- Proof of the primitive root theorem
- Proof of Pépin's test
- Proof of the description of the automorphism group of a cyclic group
- Proof that the order of the group of units of Z/nZ is Euler's totient
- Proof of the existence of primitive roots modulo a prime by counting elements of each order
Further reading
About this page
| Tag | TKE9RVC3TQ |
|---|---|
| URI | m2://TKE9RVC3TQ |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A07, 20K01 |
| Proves | Units of Z/nZ are the residues coprime to n |
| Uses | Integers modulo n, Residue class, Unit of a ring, Greatest common divisor, Bézout's identity |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
- a source with a locator (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.