Proof of Wilson's theorem by pairing inverses
Builds on Prime numberCongruence modulo nDivisibilityGreatest common divisorExistence of inverses modulo nModular multiplicative inverseDivision algorithmEuclid's lemmaCancellation in congruencesCongruence is compatible with multiplication
Proof
- Let be a prime number. If , then , and divides . So . From now on let .
- Let . Each satisfies , so the greatest common divisor is a positive divisor of other than . Thus .
- Let . By step 2 and the existence of inverses modulo n, has a modular multiplicative inverse , so .
- By the division algorithm, with . Then . Since , we get , so .
- If and , then . By cancellation with , . Both lie in , so .
- So each has exactly one with . Since , step 5 applied to gives .
- Let . Then if and only if , that is, .
- By Euclid's lemma, this holds if and only if or . Since and , this means or .
- Let , which is empty when . Let . If , then , so . If , then , so . Both contradict .
- So maps to . By steps 6 and 8, it is its own inverse and has no fixed point in .
- Hence splits into disjoint pairs with . Each pair has product .
- By compatibility with multiplication, . This also holds when is empty.
- Then , by compatibility with multiplication and .
Idea
Modulo a prime, every nonzero residue has a unique inverse. Only and are their own inverses, so all the other factors of cancel in pairs. What remains is .
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 generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of Euclid's lemma, Proof of strong induction from ordinary induction, Proof that congruence is compatible with multiplication, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of inverses modulo n, Proof of cancellation in congruences.
Show the path as a graph
- no evidence level
- Definition by recursion concept
- Divisibility definition
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Congruence modulo n definition
- Greatest common divisor definition
- Prime number definition
- Successor function definition
- Modular multiplicative inverse definition
- Proof that congruence is compatible with multiplication proof
- Coprime integers definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor statement
- Congruence is compatible with multiplication statement
- Proof of the commutativity of addition by induction proof
- Order on the natural numbers 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 of the existence of inverses modulo n proof
- Proof of the generalized Euclid's lemma proof
- Existence of inverses modulo n statement
- Generalized Euclid's lemma statement
- Proof of cancellation in congruences proof
- Proof of Euclid's lemma proof
- Cancellation in congruences statement
- Euclid's lemma statement
- Proof of Wilson's theorem by pairing inverses proof
Where this leads
2 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Wilson%27s_theorem, Elementary proof
About this page
| Tag | RPE4ET6Y7B |
|---|---|
| URI | m2://RPE4ET6Y7B |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A07 |
| Proves | Wilson's theorem |
| Uses | Prime number, Congruence modulo n, Divisibility, Greatest common divisor, Existence of inverses modulo n, Modular multiplicative inverse, Division algorithm, Euclid's lemma, Cancellation in congruences, Congruence is compatible with multiplication |
| Methods | Proof by cases |
| 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)
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.