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

练习及解答

练习 461
How many four-digit numbers have the property that the sum of the two middle digits equals the sum of the first and last digits?
← 返回第 461 题
解答
  1. Write the number as $\overline{abcd}$ with $a+d=b+c$. First allow $a=0$ as well, and count strings of four digits.
  2. The number of pairs of digits with sum $s$ is $s+1$ for $0\le s\le9$ and $19-s$ for $10\le s\le18$. Choosing the pair $(a,d)$ and the pair $(b,c)$ with the same sum $s$ gives
    \[1^2+2^2+\dots+10^2+9^2+\dots+1^2=385+285=670\]
    strings.
  3. Now remove the strings with $a=0$. Then $d=b+c$, so $(b,c)$ is any pair of digits with $b+c\le9$, and $d$ is determined. There are $1+2+\dots+10=55$ such pairs.
  4. So the answer is $670-55=\boxed{615}$.
搜索 跳转 上一题      下一题

联系我们

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