Browse · MathNet
PrintJapan Mathematical Olympiad
Japan counting and probability
Problem
Let be a positive integer and suppose a square grid is given. Suppose we color exactly square boxes of the grid in such a way that the following condition is satisfied.
Condition: If a box is colored then none of the boxes which share only a vertex with that box is not colored.
How many ways of coloring square boxes of the grid are there that satisfy the condition stated above? We regard two configurations of colored boxes to be distinct if one configuration can be transposed on the other by rotation or by flipping.
Condition: If a box is colored then none of the boxes which share only a vertex with that box is not colored.
How many ways of coloring square boxes of the grid are there that satisfy the condition stated above? We regard two configurations of colored boxes to be distinct if one configuration can be transposed on the other by rotation or by flipping.
Solution
ways
Let us consider the grid of squares of side length obtained from the original grid by forming non-overlapping squares of side length by coalescing neighboring squares of the original grid into one large square. Let us call each of the squares of the new grid a block. By the condition of the problem, each block contains at most squares to be colored, and since squares of the original grid must be colored, we see that exactly of the squares in each block must be colored.
Suppose we label squares in a block as indicated in the figure below, and do this in the same way for each block.
In order to color of the squares in a block so as to satisfy the condition of the problem, it is enough to choose one of the squares from and and one of the squares from and to color. A square in a block can share a side, or a vertex but not a side, or nothing with any square in an adjacent block (which shares with the block a side or just a vertex). Sharing of a vertex but not a side by two squares in adjacent blocks can occur only when the labels of the two squares are and or when they are and .
Therefore, the decision to color which of the squares and for a block can be made independently of the decision to color or in that block.
Let us now consider how to decide whether or should be colored for each block. Let us start off with the block located at the upper-left corner and choose or in that block to color, and proceed to the block lying to the immediate right of the initial block on the same row to make the choice between and (so as to satisfy the condition of the problem) and keep on doing the same process until we hit the last block on this row, and then go over to the left-most block lying on the second row to repeat the process, going from left to right, and on to the third row, and so on, finally to reach the last block lying at the lower-right corner. In this process, if for some block , the square was chosen to be colored, then for all of the blocks lying on the same row and to the right of , should be colored in order to satisfy the condition of the problem. We also see that if there is a row under the row for , then the block lying directly under must have the square colored.
Consequently, for each , there exists an integer such that in the -th row of the blocks, in all of the blocks from the left the square is colored, while in the remaining blocks in the same row the square is colored. Furthermore, from the condition on the vertically adjacent pairs of the blocks, we see that 's satisfy Conversely, if for such a sequence we color the square or in the -th row so that for all of the first blocks from the left the square will be colored and for the remaining blocks in the same row the square will be colored, and we do this for every , then the condition of the coloring will be satisfied as far as the squares and are concerned.
If we define, for each , the inequalities above are equivalent to and therefore, we see that the number of ways of choosing or to color from each of blocks is the same as the number of choosing distinct integers lying in between and ( and inclusive), which equals . The same argument applies to the number of ways of choosing or to color, and therefore, the total number of coloring the squares of the original grid to satisfy the condition of the problem is .
Let us consider the grid of squares of side length obtained from the original grid by forming non-overlapping squares of side length by coalescing neighboring squares of the original grid into one large square. Let us call each of the squares of the new grid a block. By the condition of the problem, each block contains at most squares to be colored, and since squares of the original grid must be colored, we see that exactly of the squares in each block must be colored.
Suppose we label squares in a block as indicated in the figure below, and do this in the same way for each block.
| A | B |
|---|---|
| C | D |
Therefore, the decision to color which of the squares and for a block can be made independently of the decision to color or in that block.
Let us now consider how to decide whether or should be colored for each block. Let us start off with the block located at the upper-left corner and choose or in that block to color, and proceed to the block lying to the immediate right of the initial block on the same row to make the choice between and (so as to satisfy the condition of the problem) and keep on doing the same process until we hit the last block on this row, and then go over to the left-most block lying on the second row to repeat the process, going from left to right, and on to the third row, and so on, finally to reach the last block lying at the lower-right corner. In this process, if for some block , the square was chosen to be colored, then for all of the blocks lying on the same row and to the right of , should be colored in order to satisfy the condition of the problem. We also see that if there is a row under the row for , then the block lying directly under must have the square colored.
Consequently, for each , there exists an integer such that in the -th row of the blocks, in all of the blocks from the left the square is colored, while in the remaining blocks in the same row the square is colored. Furthermore, from the condition on the vertically adjacent pairs of the blocks, we see that 's satisfy Conversely, if for such a sequence we color the square or in the -th row so that for all of the first blocks from the left the square will be colored and for the remaining blocks in the same row the square will be colored, and we do this for every , then the condition of the coloring will be satisfied as far as the squares and are concerned.
If we define, for each , the inequalities above are equivalent to and therefore, we see that the number of ways of choosing or to color from each of blocks is the same as the number of choosing distinct integers lying in between and ( and inclusive), which equals . The same argument applies to the number of ways of choosing or to color, and therefore, the total number of coloring the squares of the original grid to satisfy the condition of the problem is .
Final answer
(2n choose n)^2
Techniques
Coloring schemes, extremal argumentsRecursion, bijectionCounting two ways