Proof that Z/nZ is a field if and only if n is prime
Builds on Integers modulo nFieldPrime numberComposite numberGreatest common divisorBézout's identityCommutative ring
Proof
- Let be an integer. Write for the class of an integer in the ring of integers modulo n.
- The ring is a commutative ring, because the operations on classes come from the commutative operations on .
- We have if and only if . In particular, , since does not divide .
- First suppose that is not a prime number. Since , is composite. So has a positive divisor with and . Put . Then , and so .
- By step 3, and , since . But .
- Suppose that had an inverse , so that . Then .
- This contradicts step 5. So is a nonzero element without inverse, and is not a field.
- Now suppose that is a prime number. By steps 2 and 3, it remains to show that every nonzero class has an inverse.
- Let , so by step 3. Let be the greatest common divisor.
- Since is a positive divisor of the prime , or . Since and , . So .
- By Bézout's identity, there are integers with .
- Passing to classes, . Since , this gives .
- So is an inverse of , and is a field.
- By steps 7 and 13, is a field if and only if is prime.
Idea
A factorization gives two nonzero classes with product zero, and such a class cannot be invertible. For a prime , any not divisible by is coprime to . Bézout's identity then writes as plus a multiple of , so inverts modulo .
Reading path
To understand this page from the ground up, read these 36 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
- Prime number 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
- Composite number definition
- Addition of natural numbers definition
- Commutative ring definition
- Unit of a ring 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
- Field 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 Z/nZ is a field if and only if n is prime proof
Where this leads
10 pages build on this one.
- Reduction modulo p test for irreducibility
- Z/pZ is a field for p prime
- The group of units of Z/pZ is cyclic
- Irreducibility of the cyclotomic polynomials over the rationals
- Gauss–Wantzel theorem
- Cyclotomic field
- Proof that the group of units of Z/pZ is cyclic by counting elements of each order
- Proof of the irreducibility of the cyclotomic polynomials by reduction modulo primes
- Proof of the Gauss–Wantzel theorem
- Proof of the reduction modulo p test for irreducibility
Further reading
About this page
| Tag | 5MWBX5QWGJ |
|---|---|
| URI | m2://5MWBX5QWGJ |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A07 |
| Proves | Z/pZ is a field for p prime |
| Uses | Integers modulo n, Field, Prime number, Composite number, Greatest common divisor, Bézout's identity, Commutative ring |
| 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.