做测试 登录 English
← 练习 727 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
目录 · 按章节
数字 (38)
质数 (31)
分数、小数与取整函数 (18)
因数、最大公约数与最小公倍数 (36)
整除 (59)
进制 (15)
同余 (42)
整数方程 (27)

练习及解答

练习 727
What is the largest possible difference between two consecutive seven-digit palindromes?
← 返回第 727 题
解答
  1. Write the palindrome as $\underline{a}\,\underline{b}\,\underline{c}\,\underline{d}\,\underline{c}\,\underline{b}\,\underline{a}$. If the middle digit $d$ is less than $9$, the next palindrome raises $d$ by $1$: difference $1000$.
  2. If $d=9$ and $c<9$, the next palindrome raises $c$ by $1$ (adding $10100$) and changes $d$ from $9$ to $0$ (subtracting $9000$): difference $1100$.
  3. If $c=d=9$ and $b<9$, the next raises $b$ (adding $100010$) and resets $c,d$ to $0$ (subtracting $90900+9000$): difference $110$.
  4. If $b=c=d=9$ and $a<9$, the next raises $a$ (adding $1000001$) and resets the rest (subtracting $999990$): difference $11$.
  5. So the largest difference is $\boxed{1100}$, which is larger than the usual step of $1000$.
搜索 跳转 上一题      下一题

联系我们

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