This post follows from Part 6. Note that this shall be the last tutorial segment for the series of posts. There will be a test in a few days for the interested reader. Questions for the test will be taken from recent IMO so I encourage my readers to go through the previous posts if they would feel like taking the test.
Please also bare with me. This is quite a long instalment.
(IMO shortlist 1998) A solitaire game is played on an regular board, using markers that are white on one side and black on the other. Initially, each square of the board contains a marker with its white side up, except for one corner square, which contains a marker with its black side up. In each move, one may take away one marker with its black side up but must then turn over all markers that are in squares having an edge in common with the square of the removed marker. Determine all pairs of positive integers such that all markers can be removed from the board.
Solution: This is a particularly annoying problem. It is extremely long and difficult to understand. As such, let us employ the technique of trying small cases to perhaps find a pattern.
. This is boring. Just remove the "corner square" marker.
WLOG . This is boring too. Remove any "corner square" marker. The other will be black. Remove both.
. Just do the operations and you will find that you end up with a sole white marker that cannot be removed.
. Just remove the first row one by one and leave the following scenario, it is clear that all markers can be removed.
. Playing around shows that this case is impossible.
These observations motivate us to conjecture that if either is odd then we can remove all markers (using the th case as a hint). WLOG, let us write . For easy reference, we assign the markers a position as the th row and th column. So now, again, WLOG, is that with the black side up. We remove and in sequential from top to bottom, remove all for . We have something as in the following diagram:
So in our mathematical language, each marker now has its black side up (sounds like backside up). Anyways, the next thing is to sequentially (which means in the order of ) remove the markers . The cute thing here is that each with is actually flipped twice, which means it turn from , which is nice. So we have the following diagram:
Now by removing the markers sequentially, we end up with the following diagram. It is clear now that by using this procedure we can remove all markers given that is odd (so that the final row would be black).
To show that if are both even then we cannot remove all the markers, we need to find an invariance. Here are approaches, as we will see, the first approach stems from the fact that empty squares without markers are useless, so the idea of removing empty squares. The second one is more well-known, as assigning weights of allows one to consider sums and products (as in this case).
Consider the perimeter of the board. We consider removing a black marker as removing the edges that the cell it is in shares with the perimeter of the board. This is a bit ambiguous and requires the formal definition of perimeter. With that in mind, we will refer to removing a black marker as removing the cell it is in. Consider removing a cell that shares edges with the perimeter of the board, then is lost and is gained for the perimeter. The presence of suggests taking which is a considerably good strategy. So, we have a net gain of for the perimeter, which is .
We want to eliminate the variable , so let's give it a physical meaning first. Well, except for the first black marker and its cell, is actually . Notice that the former is always odd, since if we consider the cycle , we would always need an odd number of manipulations/arrows, as desired. This implies that the total sum is odd, and we see that no matter whether , .
However, this means the perimeter changes times from which is the original perimeter. By assumption , which means that the final perimeter is . It is clear that a contradiction arises since we need it to be . □
For the reader: Solve this example by assigning the weights as suggested as a second approach.