Maths Olympiad Prep

Library / /23 of 29

Combinatorics Difficulty 7.5 National Olympiad, round 2 Prove it Middle European Mathematical Olympiad (MEMO)

Problem:

Let mm and nn be positive integers. Some squares of an m×nm \times n board are coloured red. A sequence a1,a2,,a2ra_{1}, a_{2}, \ldots, a_{2 r} of 2r42 r \geqslant 4 pairwise distinct red squares is called a bishop circuit if for every k{1,,2r}k \in\{1, \ldots, 2 r\}, the squares aka_{k} and ak+1a_{k+1} lie on a diagonal, but the squares aka_{k} and ak+2a_{k+2} do not lie on a diagonal (here a2r+1=a1a_{2 r+1}=a_{1} and a2r+2=a2a_{2 r+2}=a_{2}).
In terms of mm and nn, determine the maximum possible number of red squares on an m×nm \times n board without a bishop circuit.

(Remark. Two squares lie on a diagonal if the line passing through their centres intersects the sides of the board at an angle of 4545^{\circ}.)

Solutions — 2

Solution 1

Solution:

Obviously, for the tables 1×n1 \times n and n×1n \times 1, the largest number of black cells is nn. Therefore, we assume that m2m \geq 2 and n2n \geq 2 for the rest of the solution. In the table m×nm \times n, we can color the first two rows, the first column and the last column, which is 2m+2n42 m + 2 n - 4 black cells in total. It is easy to see that such a table contains no bishop circuit.

Now we show that if there is no bishop circuit, there are at most 2m+2n42 m + 2 n - 4 black cells in the table m×nm \times n. We denote the cell in ii-th row and jj-th column by (i,j)(i, j). The kk-th positive diagonal is a set of cells (i,j)(i, j), such that i+j1=ki + j - 1 = k. Similarly, the kk-th negative diagonal is a set of cells (i,j)(i, j), such that n+ij=kn + i - j = k.

Consider a bipartite graph GG with partitions
A={a1,a2,,am+n1}andB={b1,b2,,bm+n1} A = \left\{a_{1}, a_{2}, \ldots, a_{m+n-1}\right\} \quad \text{and} \quad B = \left\{b_{1}, b_{2}, \ldots, b_{m+n-1}\right\}
where the vertices aia_{i} and bjb_{j} are connected by an edge if and only if the cell in the intersection of the ii-th positive diagonal and the jj-th negative diagonal is black. Notice that a bishop circuit corresponds to a circuit in GG and vice versa.

The graph GG has at least two components: If we color the cells of the table alternately green and red like in chess, then the edges of GG corresponding to green cells lie in a different component than the edges of GG corresponding to red cells - it is not possible to move a bishop between a green and a red cell.

Furthermore, GG has 2n+2m22 n + 2 m - 2 vertices. If GG is acyclic, then GG is a forest consisting of at least two trees. Therefore, GG contains at most 2n+2m22=2n+2m42 n + 2 m - 2 - 2 = 2 n + 2 m - 4 edges and that is the upper bound on the number of black cells we wanted to prove.

Solution 2

Solution:

Denote by SS the coloring configuration from the first proof consisting of the first two rows and the first and the last column of the table. It is easy to see that SS does not contain the bishop circuit. Also, SS is maximal in the sense that if we add any new cell to it, the new coloring will contain a bishop circuit.

We will show that any optimal coloring CC has the same number of cells as SS by transforming CC to SS by iterating the following steps:

1) First we choose any cell aa which is in SS, but not in CC. If there is no such cell, we are done since maximality of SS and optimality of CC imply that S=CS = C.

2) From the optimality of CC it follows that there is a bishop circuit BB in the coloring C{a}C \cup\{a\} containing aa. Since SS does not contain a bishop circuit, there is an element bb in cycle BB which is not in SS. We replace coloring CC with the coloring C~=(C{a})\{b}\tilde{C} = (C \cup\{a\}) \backslash\{b\}.

To finish the proof, we need to show that C~\tilde{C} is optimal. For that we need to prove that BB is a unique cycle in C{a}C \cup\{a\} containing aa.

Assume the opposite. Let a0,a,a1,,a2ra_{0}, a, a_{1}, \ldots, a_{2 r} and b0,a,b1,,b2sb_{0}, a, b_{1}, \ldots, b_{2 s} be two bishop cycles in C{a}C \cup\{a\} such that a0a_{0} and b1b_{1} (as well as a1a_{1} and b0b_{0}) are on the same diagonal. Consider the cycle in CC (every two consecutive cells are on the same diagonal)
a0,b1,b2,,b2s,b0,a1,a2,,a2r a_{0}, b_{1}, b_{2}, \ldots, b_{2 s}, b_{0}, a_{1}, a_{2}, \ldots, a_{2 r}
It remains to prove that it contains a bishop circuit which will contradict the optimality of CC.

Note that no three consecutive cells are on the same diagonal, so the only problem is if the cells are not pairwise different. Thus we can assume that we can write the cycle in the following form
c1,,ck,c1,d1,d2,,dt1 c_{1}, \ldots, c_{k}, c_{1}, d_{1}, d_{2}, \ldots, d_{t-1}
where tkt \geq k. If we remove first kk cells we obtain the cycle
c1,d1,d2,,dt1 c_{1}, d_{1}, d_{2}, \ldots, d_{t-1}
Furthermore, if dt1,c1d_{t-1}, c_{1} and d1d_{1} are on the same diagonal, we remove c1c_{1}. By repeating this procedure, we end up with the bishop's circuit.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.