Math 2.0

Number theory Proof

Proof that the integers modulo a prime form a field

Builds on Integers modulo nResidue classCongruence modulo nDivisibilityPrime numberGreatest common divisorBézout's identityField

Proof

  1. Let pp be a prime number. For an integer aa, write a‾\overline{a} for its residue class modulo pp.
  2. By the definition of a residue class, a‾=b‾\overline{a} = \overline{b} if and only if a≡b(modp)a \equiv b \pmod p, that is, pp divides a−ba - b.
  3. The ring ℤ/pℤ\mathbb{Z}/p\mathbb{Z} of integers modulo p is commutative: a‾⋅b‾=ab‾=ba‾=b‾⋅a‾\overline{a} \cdot \overline{b} = \overline{a b} = \overline{b a} = \overline{b} \cdot \overline{a}.
  4. We have 1‾≠0‾\overline{1} \ne \overline{0}. Indeed, p>1p > 1, so pp does not divide 1−0=11 - 0 = 1, and step 2 applies.
  5. Let a‾\overline{a} be a nonzero element of ℤ/pℤ\mathbb{Z}/p\mathbb{Z}. By step 2, pp does not divide aa.
  6. Let d=gcd⁡(a,p)d = \gcd(a, p) be the greatest common divisor. It is a positive divisor of pp, so d=1d = 1 or d=pd = p, since pp is prime.
  7. The integer dd divides aa. Since pp does not divide aa by step 5, d≠pd \ne p. So d=1d = 1.
  8. By Bézout's identity, there are integers xx and yy with ax+py=1a x + p y = 1.
  9. Then ax−1=−pya x - 1 = - p y, so pp divides ax−1a x - 1. By step 2, ax‾=1‾\overline{a x} = \overline{1}.
  10. Hence a‾⋅x‾=ax‾=1‾\overline{a} \cdot \overline{x} = \overline{a x} = \overline{1}, and x‾\overline{x} is a multiplicative inverse of a‾\overline{a}.
  11. By steps 3, 4 and 10, ℤ/pℤ\mathbb{Z}/p\mathbb{Z} is a commutative ring with 1≠01 \ne 0 in which each nonzero element has an inverse. So it is a field.

Idea

A class a‾\overline{a} is nonzero exactly when p∤ap \nmid a. For a prime pp, this forces gcd⁡(a,p)=1\gcd(a, p) = 1, and Bézout's identity then writes 11 as axa x plus a multiple of pp, which is an inverse of a‾\overline{a}.

Reading path

To understand this page from the ground up, read these 35 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
Definition by recursion, concept, no evidence levelDefinition by recursi…conceptDivisibility, definition, no evidence levelDivisibilitydefinitionGroup, concept, no evidence levelGroupconceptMathematical induction, concept, no evidence levelMathematical inductionconceptNatural numbers, object, no evidence levelNatural numbersobjectPeano axioms, concept, no evidence levelPeano axiomsconceptCongruence modulo n, definition, no evidence levelCongruence modulo ndefinitionGreatest common divisor, definition, no evidence levelGreatest common divis…definitionPrime number, definition, no evidence levelPrime numberdefinitionRing, definition, no evidence levelRingdefinitionSuccessor function, definition, no evidence levelSuccessor functiondefinitionResidue class, definition, no evidence levelResidue classdefinitionProof that congruence is compatible with addition, proof, no evidence levelProof that congruence…proofProof that congruence is compatible with multiplication, proof, no evidence levelProof that congruence…proofAddition of natural numbers, definition, no evidence levelAddition of natural n…definitionCommutative ring, definition, no evidence levelCommutative ringdefinitionUnit of a ring, definition, no evidence levelUnit of a ringdefinitionThe successor function is injective, statement, no evidence levelThe successor functio…statementZero is not a successor, statement, no evidence levelZero is not a success…statementCongruence is compatible with addition, statement, no evidence levelCongruence is compati…statementCongruence is compatible with multiplication, statement, no evidence levelCongruence is compati…statementProof of the commutativity of addition by induction, proof, no evidence levelProof of the commutat…proofOrder on the natural numbers, definition, no evidence levelOrder on the natural …definitionField, definition, no evidence levelFielddefinitionIntegers modulo n, definition, no evidence levelIntegers modulo ndefinitionCommutativity of addition, statement, no evidence levelCommutativity of addi…statementProof of strong induction from ordinary induction, proof, no evidence levelProof of strong induc…proofStrong induction, statement, no evidence levelStrong inductionstatementProof of the well-ordering principle from strong induction, proof, no evidence levelProof of the well-ord…proofWell-ordering principle, statement, no evidence levelWell-ordering princip…statementProof of the division algorithm, proof, no evidence levelProof of the division…proofDivision algorithm, statement, no evidence levelDivision algorithmstatementProof of Bézout's identity, proof, no evidence levelProof of Bézout's ide…proofBézout's identity, statement, no evidence levelBézout's identitystatementProof that the integers modulo a prime form a field, proof, no evidence levelProof that the intege…proof
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Definition by recursion concept
  2. Divisibility definition
  3. Group concept
  4. Mathematical induction concept
  5. Natural numbers object
  6. Peano axioms concept
  7. Congruence modulo n definition
  8. Greatest common divisor definition
  9. Prime number definition
  10. Ring definition
  11. Successor function definition
  12. Residue class definition
  13. Proof that congruence is compatible with addition proof
  14. Proof that congruence is compatible with multiplication proof
  15. Addition of natural numbers definition
  16. Commutative ring definition
  17. Unit of a ring definition
  18. The successor function is injective statement
  19. Zero is not a successor statement
  20. Congruence is compatible with addition statement
  21. Congruence is compatible with multiplication statement
  22. Proof of the commutativity of addition by induction proof
  23. Order on the natural numbers definition
  24. Field definition
  25. Integers modulo n definition
  26. Commutativity of addition statement
  27. Proof of strong induction from ordinary induction proof
  28. Strong induction statement
  29. Proof of the well-ordering principle from strong induction proof
  30. Well-ordering principle statement
  31. Proof of the division algorithm proof
  32. Division algorithm statement
  33. Proof of Bézout's identity proof
  34. Bézout's identity statement
  35. Proof that the integers modulo a prime form a field proof

Where this leads

37 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Modular_arithmetic, Integers modulo m
About this page
TagEB9QSKM7JN
URIm2://EB9QSKM7JN
Kindproof
WritingW0 stub
MSC11A07
ProvesIntegers modulo a prime form a field
UsesIntegers modulo n, Residue class, Congruence modulo n, Divisibility, Prime number, Greatest common divisor, Bézout's identity, Field
MethodsDirect proof
Changed4 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)

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.