Take a test Sign in 中文
← Exercise 702 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 702
A palindrome is a nonnegative integer that reads the same forwards and backwards when written in base $10$ with no leading zeros. An $8$-digit palindrome $n$ is chosen uniformly at random. What is the probability that $\frac n{11}$ is also a palindrome?
← Back to Problem 702
Solution
  1. An $8$-digit palindrome is determined by its first four digits, so there are $9\cdot10^3=9000$ of them.
  2. Suppose $q=\frac n{11}$ is a palindrome. Since $10^7\le n<10^8$, $q$ has $6$ or $7$ digits. If $q$ has $6$ digits, then $q\ge\frac{10^7}{11}>909090$, so $q$ starts with $9$ and also ends with $9$. Then $n=11q$ ends with $9$ but starts with $1$, which is impossible.
  3. So $q=\overline{xyzwzyx}$ with $x\ge1$. Adding $10q+q$ column by column, the column sums from the right are $x,\ x+y,\ y+z,\ z+w,\ w+z,\ z+y,\ y+x,\ x$, the same list read from either end. If $n$ had $9$ digits it would start with $1$, so $x=1$; but then $q<2\cdot10^6$ and $n<2.2\cdot10^7$ has only $8$ digits. So $n$ has $8$ digits.
  4. Now work inward from both ends. The leftmost digit of $n$ is $x$ plus the carry into that column, and it must equal the units digit $x$, so that carry is $0$. Then the second digit from the left is $x+y$ plus a carry (and is less than $10$), while the second digit from the right is $x+y$ reduced mod $10$ with no carry. These are equal only if the carry is $0$ and $x+y\le9$. In the same way the next pairs force $y+z\le9$ and $z+w\le9$. Conversely, these conditions mean there are no carries at all, and $n$ is a palindrome.
  5. Count $(x,y,z,w)$ with $x\ge1$, $x+y\le9$, $y+z\le9$, $z+w\le9$. For fixed $z$, $w$ has $10-z$ choices, and $y\le9-z$ with $9-y$ choices of $x$, giving $\sum_{y=0}^{9-z}(9-y)=z+(z+1)+\cdots+9=\frac{(9+z)(10-z)}2$. So the count is $\sum_{z=0}^9\frac{(10-z)^2(9+z)}2=450+405+352+294+234+175+120+72+34+9=2145$.
  6. The probability is $\frac{2145}{9000}=\boxed{\frac{143}{600}}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year