How do negative residues make finding modular inverses easier?
Conditions
- The replacement must be congruent modulo the same m.
- The resulting residue should still be invertible modulo m.
Reasoning, step by step
- Identify the number a whose inverse is needed modulo m.
- Find a negative residue equivalent to a by subtracting m (e.g., ).
- Use the smaller negative residue to find the inverse.
- Convert the resulting inverse back to a positive representative if needed by adding m.
Example
To find the inverse of 18 mod 19, rewrite 18 as -1 mod 19. Since (-1)(-1)=1, the inverse of -1 is -1. Thus, 18 is its own inverse modulo 19.
Common misconceptions
- Thinking that modular arithmetic must always stay within positive representatives.
- Forgetting to convert the final negative inverse back to a positive residue if a positive answer is required.
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).
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.
5 has no inverse modulo 10 because the greatest common divisor of 5 and 10 is 5, which is not 1. According to the existence theorem, an integer has an inverse modulo m if and only if their gcd is 1.
Conditions: Modulus is 10.; Number whose inverse is requested: 5.
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.