What is the inverse of 17 modulo 19 and how is it computed quickly?
Conditions
- Modulus is 19.
- Residue .
Reasoning, step by step
- Rewrite 17 as -2 modulo 19.
- Find the inverse of -2 modulo 19. Note that , so the inverse is -10.
- Convert the negative inverse -10 to a positive representative by adding 19: .
- Conclude that .
Example
The video shows the board writing 17 ≡ -2 (mod 19), (-2)^{-1} ≡ -10 (mod 19), and ≡ 9 (mod 19).
Common misconceptions
- Trying to use the slow brute-force method of adding 19 repeatedly until a multiple of 17 is found.
- Forgetting to convert the negative answer -10 back to the positive residue 9.
Watch the explanation
Connected concepts
Explore next
Related questions
An integer a has an inverse modulo m if and only if the greatest common divisor of a and m is equal to 1, written as . If the greatest common divisor between a and m is greater than 1, then there is no inverse modulo m.
Conditions: a is an integer.; m is the modulus.; (a,m) denotes the greatest common divisor of a and m.
18 is its own inverse modulo 19 because 18 is congruent to -1 modulo 19, and -1 is always its own multiplicative inverse since . Therefore, .
Conditions: Working modulo 19.; Using the fact that 18 ≡ -1 (mod 19).
Negative residues make finding modular inverses easier by replacing a large positive representative with a smaller-magnitude equivalent residue modulo m. This often turns the problem into finding the inverse of a simpler number, like -1 or -2, which can be recognized immediately or factored more easily.
Conditions: The replacement must be congruent modulo the same m.; The resulting residue should still be invertible modulo m.
Two integers a and b are multiplicative inverses modulo m if their product is congruent to 1 modulo m. This is defined by the condition .
Conditions: a and b are integers.; The congruence is taken modulo m.
To find the inverse of a modulo m by hand, start with 1 and repeatedly add the modulus m to generate numbers congruent to 1 modulo m. Stop when you reach a number that is a multiple of a.
Conditions: Used to find an inverse of a modulo m.; One looks among integers congruent to 1 modulo m for a multiple of a.
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.