UPSC PYQPrelims 2021

Civil Services Examination · Question 6

The number 3798125P369 is divisible by 7. What is the value of the digit P?

  1. 1

  2. 6

  3. 7

  4. 9

Show answer & explanationShow explanation

Answer: (B) 6

Explanation

Concept: A number is divisible by 7 if the alternating sum of its 3-digit blocks from the right is divisible by 7 (since 1001 = 7 × 11 × 13). Form 3-Digit Blocks: Splitting 37 | 981 | 25P | 369 from the right gives blocks 369, (250 + P), 981, and 37. Alternating Sum: 369 − (250 + P) + 981 − 37 = 1063 − P. Divisibility by 7: Since 1063 = 7 × 151 + 6, we need 6 − P ≡ 0 (mod 7) ⇒ P = 6. Shortcut: With P = 0, 37981250369 leaves remainder 6 when divided by 7; since 1000 ≡ −1 (mod 7), adding P × 1000 gives 6 − P ≡ 0 (mod 7) ⇒ P = 6. Correct Answer: (b) 6

Diagram explaining the answer