做测试 登录 English
← 练习 702 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
目录 · 按章节
基础计数 (147)
球与盒子 (6)
概率 (142)

练习及解答

练习 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?
← 返回第 702 题
解答
  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}}$.
搜索 跳转 上一题      下一题

联系我们

谢谢!您的消息已发送。
按年份