Proof of the existence of inverses modulo n
Builds on Modular multiplicative inverseCoprime integersGreatest common divisorBézout's identityCongruence modulo nDivisibility
Proof
- Let be a positive integer and let be an integer. Let be their greatest common divisor.
- Since , the integers and are not both . So is a positive common divisor of and .
- First assume that and are coprime, so .
- By Bézout's identity, there are integers and with .
- Then , so divides . By the definition of congruence, .
- So is a modular multiplicative inverse of modulo .
- Conversely, assume that has an inverse modulo , so .
- Then divides , so there is an integer with . That is, .
- The integer divides and , so it divides .
- Since is positive by step 2 and divides , we get . So and are coprime.
- By steps 3 to 10, has an inverse modulo if and only if and are coprime.
Idea
An inverse of is the same thing as a way to write . Bézout's identity gives such a way when . Conversely, any common divisor of and divides .
Reading path
To understand this page from the ground up, read these 25 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 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
- Mathematical induction concept
- Natural numbers object
- Peano axioms concept
- Congruence modulo n definition
- Greatest common divisor definition
- Successor function definition
- Modular multiplicative inverse definition
- Coprime integers definition
- Addition of natural numbers definition
- The successor function is injective statement
- Zero is not a successor 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
Where this leads
24 pages build on this one.
- Diffie–Hellman key exchange
- Wilson's theorem
- Existence of primitive roots modulo a prime
- Number of invertible residues modulo n
- Converse of Wilson's theorem
- Discrete logarithm
- Primitive root theorem
- RSA cryptosystem
- Primitive root modulo n
- Existence of inverses modulo n
- Multiplicative order
- Euler's theorem
- The order modulo p divides p − 1
- Proof of the primitive root theorem
- Shor's algorithm
- Digital signature
- Proof of Euler's theorem by rearrangement
- Elliptic-curve cryptography
- Proof that the order modulo p divides p − 1
- Proof of the existence of primitive roots modulo a prime by counting elements of each order
- Proof of Wilson's theorem by pairing inverses
- ElGamal encryption
- Proof of the number of invertible residues modulo n
- Integer factorization
Further reading
- Web https://en.wikipedia.org/wiki/Modular_multiplicative_inverse, Integers modulo m
About this page
| Tag | SC1CEH0NHE |
|---|---|
| URI | m2://SC1CEH0NHE |
| Kind | proof |
| Writing | W0 stub |
| MSC | 11A07 |
| Proves | Existence of inverses modulo n |
| Uses | Modular multiplicative inverse, Coprime integers, Greatest common divisor, Bézout's identity, Congruence modulo n, Divisibility |
| Methods | Direct proof |
| 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.