Problem
Reasoning · Grade 4-2 Nim Games
Notice that only the number left matters
All that matters is how many marbles remain.
Ten marbles could otherwise hide a huge number of positions, but the take-in-order rule squeezes them down to just eleven, few enough to check every one.
4.OA.A.3Make A Systematic ListRules (1): the turns are completely forced
In (1) the turns are forced, so yours are 2, 4, 6, 8, 10.
With no choices left, winning is not about clever play at all - it is only about whether you are the first or second player, and the even marbles are the second player's share.
4.OA.B.4Make A Systematic ListRules (2): start at the end and step back
In (2) step back from 10 three at a time.
Three is the magic gap because 1 and 2 are the only moves: whatever the opponent takes, t, the leftover 3 - t is still a legal move for me, so I always get the last one.
4.OA.A.3Work BackwardsStarting at the finished game and stepping backwards labels every earlier position as a win or a loss.
Why?
Stepping back reverses a move, so a position's label is decided entirely by the positions it can hand over.
Why?
A position is a loss only when every move from it hands the opponent a win, so ruling out all the escapes settles it.
Rules (2): repeat the step-back to the very start
Carrying on gives 1, 4, 7, 10.
Every time I hand over a multiple of 3, I can answer any move of size t with a move of size 3 - t, so the multiples of 3 march down 9, 6, 3, 0 no matter what my opponent tries.
4.OA.A.3Work BackwardsRead the pattern in the key marbles
The key numbers go up in threes.
Pairing my move with my opponent's into a fixed-size round of 3 is what makes their choice powerless - they pick t, but the round total is decided by me.
4.OA.C.5Look For A PatternRules (3): the last marble is now poison
In (3) marble 10 is poison, so take 3, 6, 9.
Changing the rule from win to lose only shifts the target one marble earlier - the job becomes owning marble 9 instead of marble 10, and everything else about the +3 rhythm stays the same.
4.OA.C.5Work BackwardsPlay each game out to check
Playing them out shows all three work.
Trying both of the opponent's replies at every turn is what turns 'this should work' into 'this cannot fail', because those two replies are the only choices they ever have.
3.OA.A.3Make A Systematic ListWork backwards from the marble that decides the game, then jump back by one-plus-the-most-you-may-take each time - and always answer your opponent's move so the two of you remove that same total every round.
- Notice that only the number left matters
- Rules (1): the turns are completely forced
- Rules (2): start at the end and step back
- Rules (2): repeat the step-back to the very start
- Read the pattern in the key marbles
- Rules (3): the last marble is now poison
- Play each game out to check