Maths Olympiad Prep

Library / NMO Selection Tests for BMO and IMO /45 of 47

NMO Selection Tests for BMO and IMO

Combinatorics Difficulty 9.0 Shortlist Prove it Romania

Let nn be a positive integer and let QQ be an n×n×nn \times n \times n cube. A box is a subset of QQ of one of the forms 1×n×n1 \times n \times n, n×1×nn \times 1 \times n or n×n×1n \times n \times 1. Each 1×1×11 \times 1 \times 1 cell of QQ is coloured one of several many colours. Consider the colour set of each box (each colour listed once). There are 3n3n such, split into three nn-element collections, one for each of the three directions. It turns out that every colour set in any of the three collections appears in each of the other two collections. Under these conditions, determine, in terms of nn, the maximum number of colours QQ may bear.

Solution

The required maximum is n(n+1)(2n+1)/6n(n+1)(2n+1)/6 and is achieved, for instance, by colouring cells as described below. For each colour, we list the set of all cells bearing that colour:
* nn singletons of the form {(i,i,i)}\{(i, i, i)\}, where 1≤i≤n1 \le i \le n;
* 3(n2)3\binom{n}{2} doubletons of the form {(i,j,j),(j,i,i)}\{(i, j, j), (j, i, i)\}, {(j,i,j),(i,j,i)}\{(j, i, j), (i, j, i)\} and {(j,j,i),(i,i,j)}\{(j, j, i), (i, i, j)\}, where 1≤i<j≤n1 \le i < j \le n; and
* 2(n3)2\binom{n}{3} triplets of the form {(i,j,k),(j,k,i),(k,i,j)}\{(i, j, k), (j, k, i), (k, i, j)\}, where 1≤i<j<k≤n1 \le i < j < k \le n or 1≤i<k<j≤n1 \le i < k < j \le n.

Thus, QQ bears exactly n+3(n2)+2(n3)=n(n+1)(2n+1)/6n + 3\binom{n}{2} + 2\binom{n}{3} = n(n+1)(2n+1)/6 colours, and it is easily seen that the rank ii boxes in the three directions all share the same colour set.

We will now show that, under the conditions in the statement, the number of colours QQ bears does not exceed n(n+1)(2n+1)/6n(n+1)(2n+1)/6.

Fix such a colouring and split the set CC of all colours in QQ into three subsets: The set C1C_1 of all colours that appear exactly once, the set C2C_2 of all colours that appear exactly twice, and the set C3C_3 of all colours that appear at least thrice. Let SiS_i be set of all cells in QQ bearing a colour in CiC_i. Since ∣Si∣≥i∣Ci∣|S_i| \ge i|C_i|,
∣C∣=∣C1∣+∣C2∣+∣C3∣≤∣S1∣+12∣S2∣+13∣S3∣=∣S1∣+∣S2∣+∣S3∣3+4∣S1∣+∣S2∣6=n33+4∣S1∣+∣S2∣6, \begin{aligned} |C| &= |C_1| + |C_2| + |C_3| \le |S_1| + \frac{1}{2}|S_2| + \frac{1}{3}|S_3| \\ &= \frac{|S_1| + |S_2| + |S_3|}{3} + \frac{4|S_1| + |S_2|}{6} = \frac{n^3}{3} + \frac{4|S_1| + |S_2|}{6}, \end{aligned}
and it is therefore sufficient to show that 4∣S1∣+∣S2∣≤n(3n+1)4|S_1| + |S_2| \le n(3n+1).

To this end, we fix a box XX of the form 1×n×n1 \times n \times n and prove that 4∣X∩S1∣+∣X∩S2∣≤3n+14|X \cap S_1| + |X \cap S_2| \le 3n + 1. Summing over all such boxes XX, we get the desired upper bound. Let YY and ZZ be n×1×nn \times 1 \times n and n×n×1n \times n \times 1 boxes, respectively, sharing the colour set of XX.

If X∩S1X \cap S_1 is non-empty, then a cell in this set also lies in both YY and ZZ, hence in X∩Y∩ZX \cap Y \cap Z. Consequently, X∩S1=X∩Y∩ZX \cap S_1 = X \cap Y \cap Z and ∣X∩S1∣=1|X \cap S_1| = 1.

Consider now the cells in X∩S2X \cap S_2. There are at most (n−1)+(n−1)=2(n−1)(n-1) + (n-1) = 2(n-1) such in the cross (X∩Y)∪(X∩Z)(X \cap Y) \cup (X \cap Z), since the cell in X∩Y∩ZX \cap Y \cap Z is in S1S_1. Let now cc be any other cell in X∩S2X \cap S_2. Recall that there is only one other cell c′c' in QQ sharing the colour of cc. Since Y∪ZY \cup Z does not contain cc, and YY and ZZ each contains a cell sharing its colour, it follows that they both contain c′c'. And since the cell in X∩Y∩ZX \cap Y \cap Z is in S1S_1, the cell c′c' lies in (Y∩Z)∖X(Y \cap Z) \setminus X. The assignment c↦c′c \mapsto c' is clearly injective, so the number of cells cc under current consideration does not exceed ∣(Y∩Z)∖X∣=n−1|(Y \cap Z) \setminus X| = n-1. Consequently, ∣X∩S2∣≤2(n−1)+(n−1)=3(n−1)|X \cap S_2| \le 2(n-1) + (n-1) = 3(n-1), and hence 4∣X∩S1∣+∣X∩S2∣≤4+3(n−1)=3n+14|X \cap S_1| + |X \cap S_2| \le 4 + 3(n-1) = 3n+1.

To deal with the case where X∩S1X \cap S_1 is empty, proceed similarly with minor changes. This time X∩S2X \cap S_2 contains at most 2n−12n-1 cells from the cross (X∩Y)∪(X∩Z)(X \cap Y) \cup (X \cap Z). To any other cell cc in X∩S2X \cap S_2 there corresponds a cell c′c' in Y∩ZY \cap Z (not necessarily outside XX), so there are at most nn such. Consequently, ∣X∩S2∣≤(2n−1)+n=3n−1|X \cap S_2| \le (2n-1) + n = 3n-1, a wee bit better than needed.

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

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.