UPSC One
Back to the full 2025 paper
2025 · Q5

Let p be the remainder when 7⁸⁴ is divided by 342 and q be the remainder when 7⁸⁴ is divided by 344. What is (p – q) equal to ?

Elementary MathematicsNumber System
  1. A0
  2. B1
  3. C2
  4. D6

Explanation

Since 7³ = 343, modulo 342 we have 343 ≡ 1, so 7⁸⁴ = (7³)²⁸ ≡ 1²⁸ = 1 and p = 1. Modulo 344 we have 343 ≡ −1, so 7⁸⁴ = (7³)²⁸ ≡ (−1)²⁸ = 1 and q = 1. Therefore p − q = 1 − 1 = 0, option (a).