Given positive integers and , . In an grid, any squares in distinct rows and distinct columns are called a -set. Find the largest positive integer satisfying that: one can choose squares of the grid and colour them in a certain way, such that for any coloured -set, some two squares have the same colour, and some two squares have different colours.
Solution
.
Choose rows of the grid: colour the first rows in colour ; the second rows in colour ; ...; the last rows in colour . Altogether, squares are coloured. For any coloured -set, as there are only colours, some two squares must have the same colour. On the other hand, if all the squares in this -set have the same colour, then by definition they are in different rows, yet there are only rows in that colour, a contradiction. This implies that some two squares have different colours. Therefore, .
In a -set, if all the squares have the same colour, call it a mono -set; if the squares have distinct colours, call it a poly -set. We assert that for any colouring of squares, there must exist a mono -set or a poly -set. This will give and the conclusion. First, we need a lemma.
Lemma In an grid, among any squares, , there exists an -set.
Proof of lemma Divide the squares of the grid into groups, such that the square in the th row and th column is in group () if and only if . Notice that for each group, the squares are in distinct rows and distinct columns. By the pigeonhole principle, among any squares, of them are in a group, and they form an -set.
For the original problem, assume that squares are coloured in a certain way. According to the lemma, there exists a -set, call it . If there are or fewer colours in , then by the pigeonhole principle some squares are in the same colour, and they form a mono -set; if there are or more colours in , then choose squares of distinct colours, and they form a poly -set.
Therefore, the largest is .
Alternative proof of lemma Choose any squares and colour them black. Take rows with the most black squares: say they are row , with black squares, respectively, and the other rows have black squares, respectively. If there exists , , such that in the first rows, black squares of some rows are distributed in (or fewer) columns, say, black squares of row are all in the first columns. Then, ; for , as well (since there are fewer black squares in those rows). Hence,
which is a contradiction. It follows that for any of the first rows, the black squares are located in at least columns. By Hall's marriage theorem, there are black squares in distinct rows and distinct columns, which is an -set. The lemma is proved.