Data Structures & AlgorithmsHardGATE CS · ICPC regional

What is the modular inverse of 3 modulo 11, that is the x in [0, 10] with 3x ≡ 1 (mod 11)?

  1. A. 5
  2. B. 6
  3. C. 4
  4. D. 8

Correct answer: C. 4

Since 3 * 4 = 12 ≡ 1 (mod 11), the inverse is 4. Extended Euclid gives the same result.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic