Skip to content
← All questions

How do negative residues make finding modular inverses easier?

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.

Reasoning, step by step

  1. Identify the number a whose inverse is needed modulo m.
  2. Find a negative residue equivalent to a by subtracting m (e.g., a≡a−m(modm)a \equiv a-m \pmod{m}).
  3. Use the smaller negative residue to find the inverse.
  4. 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

Know when to use it

↗
Understand why

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.