A palindrome between and is chosen at random. What is the probability that it is divisible by ?
- A)
- B)
- C)
- D)
- E)
Answer
E
Key insight
A four-digit palindrome abba equals 1001a + 110b, and 1001 = 7*11*13, so divisibility by 7 depends only on b: b must be 0 or 7.
Solution
A four-digit palindrome has the form with digits and , so there are of them. In terms of place value,
Since , the term is always a multiple of . So the palindrome is divisible by exactly when is. Because , this means , i.e. or .
For each of the choices of , exactly of the choices of work, so the probability is .
The answer is .
Why this works
Writing a digit pattern as a linear combination of its digits reveals which digits actually matter for a divisibility question. The factorization is worth memorizing; it is why four-digit palindromes are always divisible by and why their divisibility by depends on the middle digit alone.
The trap
Trying to list all 90 palindromes and test each, or forgetting that b = 0 is allowed (giving 1/10 instead of 1/5).
Common mistakes
- Trying to list all 90 palindromes and test each, or forgetting that b = 0 is allowed (giving 1/10 instead of 1/5).
- Guessing on the grounds that "one in seven numbers is divisible by ," which ignores the structure of palindromes.
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Set up the equation/formula and compute; no special trick needed