Take a test Sign in 中文
← Exercise 340 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Basic Counting (90)
---- (44)
Probability (91)

Exercises and their solutions

Exercise 340
Alice and Bob play the following game. A stack of $n$ tokens lies before them. The players take turns with Alice going first. On each turn, the player removes $1$ token or $6$ tokens from the stack. The player who removes the last token wins. Find the number of positive integers $n$ less than or equal to $1500$ such that there is a strategy that guarantees that Bob wins, regardless of Alice's moves.
← Back to Problem 340
Solution
  1. The losing positions for the player to move are $n\equiv0,2,4\pmod7$ (period $7$: from $n\equiv1,3,5$ take $1$; from $n\equiv6$ take $6$).
  2. Since $1500=7\cdot214+2$, among $1,\dots,1500$ there are $214+215+214=643$ such $n$.
  3. The answer is $\boxed{643}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1985 (1 problems)
1984 (1 problems)