The number 3798125P369 is divisible by 7. What is the value of the digit P?
- A 1
- B 6
- C 7
- D 9
Show answer and explanation
Correct answer: B - 6
Write the 11-digit number as N = 3798125 x 10000 + P x 1000 + 369 = 37981250369 + 1000P. Now reduce mod 7. 37981250369 = 7 x 5425892910 - 1, so 37981250369 leaves remainder 6 (that is, -1) mod 7. Also 1000 leaves remainder 6 mod 7. So N mod 7 = 6 + 6P (mod 7). For divisibility we need 6 + 6P congruent to 0 mod 7, i.e. 6P congruent to 1 mod 7. Since 6 is -1 mod 7, this is -P congruent to 1, giving P congruent to 6 mod 7, so P = 6. Testing the other options: P = 1, 7 or 9 each leaves a non-zero remainder, so only 6 works.