28. In a single-player card game, there are cards that are white on one side and black on the other, played on an rectangular board. Initially, the small squares of the rectangular board are covered with cards white side up, and only one corner square is covered with a card black side up. In each move, we can remove a card that is black side up, but we must flip all the cards on the adjacent squares (i.e., those sharing an edge with the square of the removed card). Find all pairs of positive integers such that all the cards can be removed from the board.
Solution
Proof: Assume it is possible to remove all the cards. Each time an operation is performed, record the number of cards that have already been removed and are adjacent to the card being removed, and let the sum of these numbers be .
The number recorded when the first card is removed is 0. Then, for each card removed, it starts as white, and it turns black only when an odd number of adjacent cards have been removed. Thus, the number recorded is an odd number. Therefore, is the sum of odd numbers, hence
On the other hand, consider each pair of adjacent cards. The number of cards not being the one removed is 1. Therefore, equals the number of all adjacent pairs of small squares on the rectangular board, i.e.,
To remove all the cards, it must be true that
which is equivalent to being even. Thus, the necessary condition for removing all the cards is that at least one of and is odd.
Next, we prove that this condition is also sufficient. By symmetry, assume . Let the position of the card be , where , and assume the card at is black side up. We remove the cards at in order, . If , the conclusion holds. Assume , then all the cards at are black side up. We remove the cards at in order, , each card at is flipped twice, so it remains black side up, and then we remove these cards. If , the conclusion holds. Otherwise, all the cards at are black side up. Repeat the above process until the given .
In summary, the pairs of positive integers that allow all the cards to be removed from the rectangular board satisfy: at least one of and is odd.