Browse · MathNet
Print24th Korean Mathematical Olympiad Final Round
South Korea counting and probability
Problem
We are given a rectangular chessboard with unit squares in each row and unit squares in each column. We are going to assign an integer to each unit square. A rectangle consisting of one or more unit squares is called a shelf if there is an integer satisfying the following two conditions:
1. The number in each unit square in is larger than . 2. The number in a unit square out of sharing an edge or a point with is at most .
(We assume that a shelf contains all interior unit squares in the rectangle.) What is the number of shelves if we assign integers to maximize the number of shelves?
1. The number in each unit square in is larger than . 2. The number in a unit square out of sharing an edge or a point with is at most .
(We assume that a shelf contains all interior unit squares in the rectangle.) What is the number of shelves if we assign integers to maximize the number of shelves?
Solution
The answer is .
For a shelf , let be the rectangular area by extending by 1 row to the top and 1 column to the left. Let us also extend the initial chessboard by 1 row to the top and 1 column to the left. We assign to each of those new unit squares so that the number of shelves is preserved. For a shelf , let us call the integer satisfying two conditions the height of .
Claim 1: If two shelves and do not intersect, then .
Proof of Claim 1: Let be the height of respectively. Without loss of generality, let us assume . If , then some unit square in is adjacent to and therefore the integer in is less than or equal to . Since , the integer in is larger than , contradictory to the assumption that . This proves Claim 1.
Claim 2: If and are distinct maximal shelves smaller than the whole chessboard, then .
Proof of Claim 2: Let be the height of respectively. Without loss of generality, let us assume . Suppose that . Suppose a unit square in shares at least one point with . If does not belong to , then the integer in should be at most but since , the integer in should be larger than , contradictory to the assumption that . So such belongs to and therefore . However this contradicts to the assumption that is maximal. So Claim 2 is proved.
Claim 3: The number of shelves in the chessboard is less than or equal to .
Proof of Claim 3: We proceed by induction on . If , then and the number of shelves is 1.
Now let us assume . Let be the maximal shelves strictly smaller than the whole chessboard.
By Claims 1 and 2, . By the induction hypothesis, the number of shelves contained in for each is at most . Therefore the number of all shelves is at most So Claim 3 is proved if . We may now assume that . Then it is enough to show that It is easy to see this because is equivalent to the inequality that . This proves Claim 3.
Now it remains to show that there is an assignment of integers so that the number of shelves is exactly . We proceed by induction on . It is trivial if .
Now by symmetry let us assume that . Let us write 1 in each unit square on the second row. For the first row, we write integers larger than 1 obtained by the induction hypothesis on a chessboard. For the remaining rows, we write integers larger than 1 obtained by the induction hypothesis on a chessboard.
Now the number of shelves in this assignment is by the induction hypothesis. This completes the proof.
For a shelf , let be the rectangular area by extending by 1 row to the top and 1 column to the left. Let us also extend the initial chessboard by 1 row to the top and 1 column to the left. We assign to each of those new unit squares so that the number of shelves is preserved. For a shelf , let us call the integer satisfying two conditions the height of .
Claim 1: If two shelves and do not intersect, then .
Proof of Claim 1: Let be the height of respectively. Without loss of generality, let us assume . If , then some unit square in is adjacent to and therefore the integer in is less than or equal to . Since , the integer in is larger than , contradictory to the assumption that . This proves Claim 1.
Claim 2: If and are distinct maximal shelves smaller than the whole chessboard, then .
Proof of Claim 2: Let be the height of respectively. Without loss of generality, let us assume . Suppose that . Suppose a unit square in shares at least one point with . If does not belong to , then the integer in should be at most but since , the integer in should be larger than , contradictory to the assumption that . So such belongs to and therefore . However this contradicts to the assumption that is maximal. So Claim 2 is proved.
Claim 3: The number of shelves in the chessboard is less than or equal to .
Proof of Claim 3: We proceed by induction on . If , then and the number of shelves is 1.
Now let us assume . Let be the maximal shelves strictly smaller than the whole chessboard.
By Claims 1 and 2, . By the induction hypothesis, the number of shelves contained in for each is at most . Therefore the number of all shelves is at most So Claim 3 is proved if . We may now assume that . Then it is enough to show that It is easy to see this because is equivalent to the inequality that . This proves Claim 3.
Now it remains to show that there is an assignment of integers so that the number of shelves is exactly . We proceed by induction on . It is trivial if .
Now by symmetry let us assume that . Let us write 1 in each unit square on the second row. For the first row, we write integers larger than 1 obtained by the induction hypothesis on a chessboard. For the remaining rows, we write integers larger than 1 obtained by the induction hypothesis on a chessboard.
Now the number of shelves in this assignment is by the induction hypothesis. This completes the proof.
Final answer
floor(((n+1)(m+1))/2) - 1
Techniques
Induction / smoothingColoring schemes, extremal argumentsCombinatorial optimization