Browse · MathNet
PrintJapan Mathematical Olympiad Initial Round
Japan counting and probability
Problem
For a grid of squares, let us consider the following operation:
Operation: Choose a rectangular region consisting of a number of squares from the grid, and color the region either white or black.
Determine the smallest possible number of operations necessary to reach from the initial configuration, in which all the squares are colored white to the configuration satisfying the following conditions: the square at the upper left corner is colored black. every square sharing a side with a black-colored square is colored white. * every square sharing a side with a white-colored square is colored black.
Operation: Choose a rectangular region consisting of a number of squares from the grid, and color the region either white or black.
Determine the smallest possible number of operations necessary to reach from the initial configuration, in which all the squares are colored white to the configuration satisfying the following conditions: the square at the upper left corner is colored black. every square sharing a side with a black-colored square is colored white. * every square sharing a side with a white-colored square is colored black.
Solution
First, we show that the answer we seek is at least . Let us call the vertices of the squares of the grid lattice points. There are lattice points. For each lattice point, call the set of all the squares of the grid having this lattice point as a vertex its neighborhood. We will first show that in order to reach the configuration satisfying the conditions of the problem, it is necessary to include in the sequence of operations, for every lattice point, an operation involving a rectangle for which it is a vertex.
Note that if a configuration satisfies the conditions of the problem, then for every lattice point there must be at least one black square in its neighborhood. For a lattice point , let us say that an operation is an operation containing if it chooses a rectangle having either in its interior or on its sides. If for some lattice point , no operation containing is performed throughout the process, then all the squares in the neighborhood of remain white, so the process does not attain the configuration desired. Therefore, at least one operation containing must be performed.
So, suppose for a lattice point we consider the last operation containing that has been performed. If this operation chooses a rectangle containing in the interior (hence is not a vertex of the rectangle), then some pair of adjacent squares in the neighborhood of must have the same color. Thus this process cannot reach the desired configuration, and this implies that the last operation containing must pick a rectangle having as its one of the vertices.
Since there are vertices for a rectangle chosen for an operation, and since there are lattice points, we see that number of operations in a process necessary to achieve the desired configuration is at least .
Next, we show that there is a process consisting of exactly operations to reach the desired configuration. For this purpose, let us consider rectangles consisting of all the squares lying on st, rd, ... -th row (i.e., odd-numbered rows) from the top and go through operations of coloring all the squares in the rectangle black starting with the top row. Next take rectangles consisting of all the squares lying on nd, -th, ... -th column (i.e., even-numbered columns) from the left and go through operations of coloring all the squares in the rectangle white starting with the left-most row. After these operations, all the squares located at the intersection of an odd-numbered row and an odd-numbered column are colored black and all other squares in the grid are colored white. Finally, for each of squares located at the intersection of an even-numbered row and an even-numbered column, we go through the operation of picking one of these squares in some order and coloring it black till we exhaust all of these squares. Then, we see that we end up with the configuration for which all the three conditions of the problem are satisfied. The number of operations necessary to go through this process is , and therefore, the answer we seek is .
Final answer
784
Techniques
Counting two waysColoring schemes, extremal arguments