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

练习及解答

练习 956
A sequence of non-negative integers satisfies $a_{n+2}=|a_{n+1}-a_n|$, with $a_1=100$, $a_2<100$, and $a_{2025}=1$. How many values of $a_2$ are possible?
← 返回第 956 题
解答
  1. $\gcd(a_{n+1},a_{n+2})=\gcd(a_{n+1},|a_{n+1}-a_n|)=\gcd(a_n,a_{n+1})$ (Theorem 90), so the gcd never changes and we need $\gcd(100,a_2)=1$. While two consecutive terms are positive, the larger of them drops by at least $1$ every two steps, so a $0$ appears within $2\cdot100<2025$ steps, after which the sequence is $1,1,0,1,1,0,\ldots$
  2. Now $a_1$ is even, so $a_2$ must be odd. The parities are $0,1,1,0,1,1,\ldots$: $a_n$ is odd exactly when $n\not\equiv1\pmod3$.
  3. $2025\equiv0\pmod3$, so $a_{2025}$ is odd, and since the sequence has reached $1,1,0$, it equals $1$. So the parity condition is automatic here.
  4. Every $a_2<100$ coprime to $100$ works: $\varphi(100)=\boxed{40}$ (Theorem 102) values.
搜索 跳转 上一题      下一题

联系我们

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