Skip to content
← All questions

What is the inverse of 5 modulo 7 and how is it computed?

The inverse of 5 modulo 7 is 3. It is computed using the add-the-modulus method: start with 1, add 7 to get 8 (not a multiple of 5), add 7 again to get 15. Since 15 is a multiple of 5 (15=5⋅315 = 5 \cdot 3), the inverse is 3.

Conditions

  • Modulus is 7.
  • Target integer is 5.

Reasoning, step by step

  1. Start with 1.
  2. Add 7 to get 8. Check if 8 is divisible by 5. It is not.
  3. Add 7 again to get 15. Check if 15 is divisible by 5. It is.
  4. Factor 15 as 5⋅35 \cdot 3.
  5. The inverse of 5 modulo 7 is 3.

Example

The video shows the board writing 1 ≡ 8 ≡ 15 (mod 7) and concluding 5−15^{-1} ≡ 3 (mod 7).

Common misconceptions

  • Stopping at 8 and incorrectly concluding there is no inverse.
  • Factoring 15 incorrectly.

Watch the explanation

Connected concepts

Explore next

Related questions

Know when to use it

↗
Understand why

↗
Find a method

↗
Find a method

↗

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