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

练习及解答

练习 911
How many $1$s are there in the binary representation of $\dfrac{2^{63}+1}{2^{9}+1}$?
← 返回第 911 题
解答
  1. Let $x=2^9$. Then $\dfrac{x^7+1}{x+1}=x^6-x^5+x^4-x^3+x^2-x+1=(x^6-x^5)+(x^4-x^3)+(x^2-x)+1$.
  2. Each pair $x^{2i-1}(x-1)=2^{9(2i-1)}(2^9-1)$ is a block of nine $1$s, in positions $9$–$17$, $27$–$35$, $45$–$53$, and the last $1$ is in position $0$.
  3. So there are $3\cdot9+1=\boxed{28}$ ones.
搜索 跳转 上一题      下一题

联系我们

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