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

练习及解答

练习 493
How many nonnegative integers can be written in the form\[a_4\cdot5^4+a_3\cdot5^3+a_2\cdot5^2+a_1\cdot5^1+a_0\cdot5^0,\]where $a_i\in\{-2,-1,0,1,2\}$ for $0\le i\le4$?
← 返回第 493 题
解答
  1. This is the base-$5$ version of balanced ternary: the digits $-2,\dots,2$ play the role of $-1,0,1$. For example, $3=5-2$, $7=5+2$, $8=2\cdot5-2$, and $13=25-2\cdot5-2$ (here $3\cdot5-2$ is not allowed, since $3$ is not a digit).
  2. \emph{Range.} The largest number is $2(5^4+5^3+5^2+5+1)=2\cdot\frac{5^5-1}4=\frac{5^5-1}2=1562$, and the smallest is $-1562$. So every number lies among the $2\cdot1562+1=3125$ integers from $-1562$ to $1562$.
  3. \emph{Different choices of digits give different numbers.} Suppose two choices differ, and let $i$ be the smallest exponent where their digits differ (the digits of $5^0,\dots,5^{i-1}$ agree). Then the difference of the two numbers is $5^i(d+5k)$ for some integer $k$, where $d\in\{\pm1,\pm2,\pm3,\pm4\}$ is the difference of the digits of $5^i$, and $5^{i+1}k$ collects the higher digits. Since $d+5k\ne0$, the numbers are different.
  4. So the $5^5=3125$ choices give $3125$ different integers, all between $-1562$ and $1562$. There are exactly $3125$ such integers, so every integer from $-1562$ to $1562$ is obtained exactly once.
  5. The nonnegative ones are $0,1,\dots,1562$: $\boxed{1563}$ numbers.
搜索 跳转 上一题      下一题

联系我们

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