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 2 of 4: Induction for achievability at n=2k−1n=2^{k-1}
n=2k−1 ⟹ Cathy can isolate marble n using k boxesn=2^{k-1}\ \Longrightarrow\ \text{Cathy can isolate marble }n\text{ using }k\text{ boxes}
Detailed analysis

Proceed by induction on kk; k=1k=1, n=1n=1 is trivial. Suppose mm boxes suffice for 2m−12^{m-1} marbles, and consider m+1m+1 boxes with 2m2^m marbles. Using mm boxes (keeping one box BB empty) apply the mm-box winning sequence to the top movements until only marbles 2m−1,…,2m2^{m-1},\ldots,2^m remain in the starting box. Move 2m−12^{m-1} into the empty box BB, then run the initial sequence in reverse treating BB as the target box; this collects 1,…,2m−11,\ldots,2^{m-1} into BB, leaves 2m−1+1,…,2m2^{m-1}+1,\ldots,2^m in the starting box, and frees the other m−1m-1 boxes. Finally apply the mm-box strategy to the 2m−12^{m-1} marbles 2m−1+1,…,2m2^{m-1}+1,\ldots,2^m using the mm boxes outside BB to isolate 2m2^m. The same strategy works for any n≤2k−1n\le 2^{k-1}.