ProgrammingVery hard

What is 2^62 mod 1000000007?

  1. A. 145586001
  2. B. 145586003
  3. C. 49
  4. D. 145586002

Correct answer: D. 145586002

Binary exponentiation with 64-bit intermediates gives 2^62 mod p = 145586002 for p = 10^9 + 7.

More C Programming questions

Exams that ask this topic