00:01
We're asked to prove a statement about a variation on the game of nim.
00:07
So recall that in this game, we're given that there are n matches, that each player removes one, two or three matches, and the player to remove the last match loses.
00:20
And we're told that both players use the best strategy.
00:26
We are asked to prove, using strong induction, that if each player uses this best strategy, then the first player wins if n equals three.
00:36
4j, 4j plus 1 or 4j plus 3 for some non -negative j, and the second player wins in the remaining case, which is when n is equal to 4j plus 1 for some non -negative j.
00:53
So first, let's define statement pn, the first player wins.
01:18
If n is congruent to 0, 2, or 3 mod 4, and second wins, this is sort of, implied since somebody has to win in this case if n is congruent to 1 mod 4 for the basis step first we have that p1 is true since player 1 must remove the only match so player 2 wins and we have that 1 is of course congruent to 1 mod 4.
02:57
Next we have that p2 is true.
03:02
First notice that 2 is congruent to 2 mod 4 and we have that player 1 wins.
03:15
This is because player 1 picks one match and then player 2 must take the last match.
03:44
And we have that the statement p3 is also true.
03:50
So notice that p3 is congruent.
03:51
So notice that p3 is congruent to 3 mod 4, we have that player 1 again will win.
04:00
You can see why we have that player 1 removes two matches.
04:11
And so it follows that player 2 must remove the last match.
04:24
And finally we have that statement p4 is true.
04:33
So 4 is congruent to 0 mod 4...