ProgrammingVery hard

Using the extended Euclidean algorithm, what is the inverse of 10 modulo 17?

  1. A. 7
  2. B. 12
  3. C. 5
  4. D. 10

Correct answer: B. 12

10 x 12 = 120 = 7 x 17 + 1, so 12 is the inverse. 7 gives 70 = 4 x 17 + 2, which is wrong.

More C Programming questions

Exams that ask this topic