A five-digit palindrome is divided by . The probability that the result is an integer and also a palindrome can be expressed as , where and are coprime positive integers.
What is ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
A five-digit number, when divided by 1 1 1 , will have either two or three number of digits.
The only two-digit palindrome that gives five digits when multiplied by 1 1 1 is 9 9 . However, 9 9 ⋅ 1 1 1 = 1 0 9 8 9 , which is not a palindrome.
Therefore, the result must have three digits and thus is of the form 1 0 0 a + 1 0 b + a = 1 0 1 a + 1 0 b , where 0 < a < 1 0 and 0 ≤ b < 1 0 . Multiply this by 1 1 1 gives 1 1 2 1 1 a + 1 1 1 0 b . This can be arranged as 1 0 0 0 0 a + 1 0 0 0 ( a + b ) + 1 0 0 ( 2 a + b ) + 1 0 ( a + b ) + a . Then, 2 a + b < 1 0 (and a + b < 1 0 ) must be true so that the symmetry will not be broken by the addition from carrying over to the next digit.
For a = 1 , there are eight possible values for b that satisfy the inequality: all integers between 0 and 7 . For a = 2 , there are six possible values for b . For a = 3 , there are four possible values for b . For a = 4 , there are two possible values for b . For a > 4 , there is no integer solution for b . Thus, there are in total 2 0 possibilities.
There are 9 0 0 five-digit palindrome (one for each integer between 1 0 0 and 9 9 9 ). Thus, the probability that a five-digit palindrome is both divisible by 1 1 1 and still produces a palindrome when divided by 1 1 1 is 9 0 0 2 0 = 4 5 1 . The final answer is 1 + 4 5 = 4 6 .