The difference of 10^{31}-5 and 10^{30}+p is divisible by 3 where p is a digit. How many values of p are possible?

  1. A. 4
  2. B. 3
  3. C. 2
  4. D. 1

Correct Answer: B. 3

Explanation

Using modulo 3, 10 \equiv 1 \pmod 3. The expression (10^{31}-5) - (10^{30}+p) \equiv 1 - 5 - 1 - p \equiv -5 - p \equiv 1 - p \pmod 3. For divisibility by 3, p \equiv 1 \pmod 3. Single-digit values for p are 1, 4, and 7, giving 3 possibilities.

Related questions on Arithmetic

Practice more CDS Elementary Mathematics questions