做测试 登录 English
← 练习 1,263 →
搜索
跳转
找到 {{searchResults.length}} 条与“{{searchWords}}”相关的结果 没有找到与“{{searchWords}}”相关的结果 × 返回目录
目录 · 按章节
基础代数 (10)
统计 (13)
方程与不等式 (42)
函数与三角 (30)
多项式 (34)
数列 (34)
指数与对数 (30)
最值 (18)
复数 (34)
二次曲线(圆锥曲线) (22)
逻辑 (14)

练习及解答

练习 1,263
Barbara and Jenna take turns removing coins from a pile. Barbara must remove $1$ or $3$ coins. Jenna must remove $2$ or $4$ coins, unless only one coin remains, in which case she loses her turn. Whoever removes the last coin wins. Assuming both play their best, who wins with $2025$ coins, and who wins with $2026$ coins, depending on who moves first?
← 返回第 1,263 题
解答
  1. Work modulo $5$: Barbara's $1$ or $3$ can be answered by Jenna's $4$ or $2$, and vice versa, so that each pair of moves removes $5$ coins.
  2. With $n\equiv0$, the player who moves second answers every move to total $5$ and takes the last coin; so the player to move loses.
  3. Barbara to move with $n\not\equiv0$ wins: from $n\equiv1,2,3,4$ she takes $1,1,3,3$ coins, leaving Jenna a pile $\equiv0$ or $\equiv1$. From $\equiv0$ Jenna loses; from $\equiv1$ Jenna either passes (one coin) or takes $2$ or $4$, leaving Barbara $\equiv4$ or $\equiv2$, and Barbara repeats. Jenna to move wins exactly when $n\equiv2,4$ (take $2$ or $4$ to leave a multiple of $5$).
  4. $2025\equiv0$: $\boxed{\text{the second player wins}}$. $2026\equiv1$: $\boxed{\text{Barbara wins}}$ whoever starts.
搜索 跳转 上一题      下一题

联系我们

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