MathLabs

Problem 4

Let nn and kk be positive integers. Cathy is playing the following game. There are nn marbles and kk boxes, with the marbles labelled 11 to nn. Initially, all marbles are placed inside one box. Each turn, Cathy chooses a box and then moves the marble with the smallest label, say ii, to either any empty box or the box containing marble i+1i+1. Cathy wins if at any point there is a box containing only marble nn. Determine all pairs of integers (n,k)(n,k) such that Cathy can win this game.
Step 4 of 4: Delete middle marbles to finish the induction
Delete 2,…,2m−1 ⟹ 2m−1+1 marbles win in m boxes, contradiction ⟹ n≤2k−1\text{Delete }2,\ldots,2^{m-1}\ \Longrightarrow\ 2^{m-1}+1\text{ marbles win in }m\text{ boxes, contradiction}\ \Longrightarrow\ n\le 2^{k-1}
Detailed analysis

Now delete marbles 2,…,2m−12,\ldots,2^{m-1} from the post-XX play. Marble 11 then only ever hops between empty boxes, permanently occupying one box and blocking any marble ≥2m−1+1\ge 2^{m-1}+1 from entering it. Hence the remaining 2m−1+12^{m-1}+1 marbles (namely 2m−1+1,…,2m+12^{m-1}+1,\ldots,2^m+1) achieve isolation of 2m+12^m+1 using only the other mm boxes, again contradicting the induction hypothesis. Thus no win is possible when n≥2k−1+1n\ge 2^{k-1}+1, and Cathy wins if and only if n≤2k−1n\le 2^{k-1}.