ProgrammingModerate

What is the multiplicative inverse of 2 modulo 7?

  1. A. 3
  2. B. 4
  3. C. 2
  4. D. 7

Correct answer: B. 4

2 x 4 = 8 = 1 (mod 7). Note that 3 gives 6, which is -1, not 1.

More C Programming questions

Exams that ask this topic