ProgrammingVery hard

The modular inverse of 2 modulo the NTT prime 998244353 is which value?

  1. A. 499122176
  2. B. 499122177
  3. C. 499122178
  4. D. 2

Correct answer: B. 499122177

Since 2 x 499122177 = 998244354 = 998244353 + 1, the inverse is 499122177.

More C Programming questions

Exams that ask this topic