Maths Olympiad Prep

Library / /8 of 14

Combinatorics Difficulty 8.3 Shortlist Prove it Estonia

On a square board with mm rows and nn columns, where mnm \le n, some squares are colored black in such a way that no two rows are alike. Find the biggest integer kk such that for every possible coloring to start with one can always color kk columns entirely red in such a way that no two rows are still alike.

Answer: nm+1n-m+1.

Solutions — 3

Solution 1

Prove that if mnm \le n, one of the columns can always be colored red. Then, when excluding this column, we can continue the process until the number of columns is smaller than the number of rows, i.e. nm+1n-m+1 times. Suppose we cannot color a single column red such that no two rows still appear alike. Then, for every column there are at least two rows that differ by only one square in that column. Consider those two rows for every column. Now consider a graph with its vertices being the rows and its edges being the pairs of rows of interest. As this graph has at least as many edges as vertices, the graph contains a cycle. Consider an arbitrary row (i.e. vertex) xx of the cycle. Then the row it is followed by differs from row xx exactly by one square, assume this square is located at the column yy. Every next row differs from the previous one in exactly one column. As all these columns differ from column yy, all the other edges of this cycle correspond to passing from one row to another such that the square in column yy remains the same. Therefore, the square in column yy remains the same in all the rows after xx and it has to remain the same at the last passage which takes us back to the row xx. This, however, means that all squares in row xx have to be of the same color as the square at the row after xx, a contradiction.

In general, no more rows can be colored red. Assume that all the squares are colored black to start with, apart from the diagonal of an m×mm \times m-subsquareboard. If we color nm+2n-m+2 columns red, there are always at least 2 columns which lie in that subsquareboard. But this means that we will over-color the only two white squares in two rows and thus we end up with two equally colored rows.

Solution 2

Consider the columns of the squareboard one by one. The first column divides the set of all the rows into two subsets: one of them consists of the rows which have the square at the first column white and the other consists of those rows that have their first square black. If the first column has all its squares white or all its squares black, then we can color it red. Similarly, for every next column divide the subsets even further depending on whether there is a black or a white square in that row in that column. If no subsets are divided further at a particular step, we can color that column red. Therefore, for all columns, either the number of subsets increases by at least one or this column is colored red. As we started off with one set and ended up with mm subsets each containing one row only, there has to be no more than m1m-1 columns that were not colored red and thus at least k=nm+1k=n-m+1 that were. All these rows are still different from each other because we colored only those columns which had no new information about the differences between rows compared with previous columns.

Similarly to Solution 1 we can show that there always exists a coloring for which no more columns can be colored red.

Solution 3

Prove by induction on the number of rows that we can always color at least k=nm+1k=n-m+1 columns red. If m=1m=1 then we can color all the columns red, i.e. k=n=nm+1k=n=n-m+1. Assume that for m=lm=l we can color at least nl+1n-l+1 columns red such that no two rows appear alike. Assume now that m=l+1m=l+1. Following from the induction hypothesis we can color at least nl+1n-l+1 columns red such that the first ll rows remain different. If after that coloring process the last row is different from the rest, all the conditions required are satisfied and we can color at least nm+2n-m+2 columns red. If the last row however is similar to any of the rows above it (there can be only one of those) then as these rows were all different to start with, there should exist a column at which the last row and the row that appears similar after coloring actually differ. If we do not color this column, all the rows will appear different and we can color nm+1n-m+1 columns red.

Similarly to Solution 1 we can show that there always exists a coloring for which no more columns can be colored red.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.