Question 1
In a game of Nim, there are three piles with $9$, $6$, and $17$ stones. On your turn, you may remove any positive number of stones from a single pile (the player taking the last stone wins). How many stones must you remove from the pile of $17$ to reach a winning Nim-sum ($0$) position?
Xem đáp án và lời giải
Đáp án: $2$
Tính tổng XOR hai đống đầu: $9 \oplus 6 = 15$. Cần giảm đống $17$ xuống còn $15$, tức là bốc đi $17 - 15 = 2$ viên.