Take a test Sign in 中文
← Exercise 1,263 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Algebra (10)
Statistics (13)
Equations (42)
Functions (30)
Polynomials (34)
Sequences (34)
Logarithm (30)
Extrema (18)
Complex Numbers (34)
Quadratic Curve(Conic section) (22)
Logic (14)

Exercises and their solutions

Exercise 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?
← Back to Problem 1,263
Solution
  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.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year