🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Number Theory: all 9 questions

Quiz: Number Theory · Question 7 of 9

What does this print? (code)

What does this print?

print(pow(3, 200, 13))
  1. A.1
  2. B.3
  3. C.9
  4. D.12
Answer & explanation

Correct answer: 9

3³ = 27 ≡ 1 (mod 13), so 3²⁰⁰ = (3³)⁶⁶ · 3² ≡ 9 (mod 13).

Can you get the rest right without peeking?

Take the timed Quiz: Number Theory quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →