Maths Olympiad Prep

Library / /397 of 397

, 2018

Combinatorics Difficulty 7.7 National Olympiad, round 2 Prove it Taiwan

Let nn be a positive integer greater than 11. A large cube of size n×n×nn \times n \times n is composed of n3n^3 unit cubes with side length 11. Each unit cube is colored with a color. From this large cube, we cut out nn distinct 1×n×n1 \times n \times n rectangular boxes R1,R2,,RnR_1, R_2, \cdots, R_n along the direction of the xx-axis. Let CiC_i be the set of colors of all unit cubes in RiR_i, and let X={C1,C2,,Cn}\mathcal{X} = \{C_1, C_2, \cdots, C_n\}. In the same way, let Y\mathcal{Y} be the set constructed by cutting out n×1×nn \times 1 \times n rectangular boxes along the direction of the yy-axis, and let Z\mathcal{Z} be the set constructed by cutting out n×n×1n \times n \times 1 rectangular boxes along the direction of the zz-axis.

Suppose we know that for X,Y\mathcal{X}, \mathcal{Y} and Z\mathcal{Z}, if a color set belongs to one of the sets, then it must also belong to the other two sets. Find the maximum possible total number of colors of these n3n^3 unit cubes (in terms of nn.)

(Example: if R1R_1 contains the three colors red, blue, and green, then C1={red, blue, green}C_1 = \{\text{red, blue, green}\}.)

Solution

The maximal number is n(n+1)(2n+1)6\frac{n(n+1)(2n+1)}{6}.

Call a n×n×1n \times n \times 1 box an x-box, an y-box, or a z-box according to its orientation.
Let NN be the number of colors in a valid configuration. We start with the upper bound for NN.

Let D1,D2D_1, D_2 and D3D_3 be the sets of colors which appear in the big cube exactly once, exactly twice, and at least thrice, respectively. Let MiM_i be the set of unit cubes whose colors are in DiD_i, and denote ni=Min_i = |M_i|.

Consider any x-box XX, and let YY and ZZ be a y- and a z-box containing the same set of colors as XX does. Let us first prove that

Claim: 4XM1+XM23n+14|X \cap M_1| + |X \cap M_2| \le 3n + 1.

Proof: We distinguish two cases.

Case 1: XM1X \cap M_1 \neq \emptyset

A cube from XM1X \cap M_1 should appear in all three boxes XX, YY and ZZ (since that color only appears once), so it should lie in XYZX \cap Y \cap Z. Thus, XM1=XYZX \cap M_1 = X \cap Y \cap Z, and thus XM1=1|X \cap M_1| = 1.

Now consider the cubes in XM2X \cap M_2. There are at most 2(n1)2(n-1) of them lying in XYX \cap Y or XZX \cap Z (since the cube from XYZX \cap Y \cap Z is in M1M_1). Let aa be a cube from XM2X \cap M_2 that is NOT in YY or ZZ. Since aM2a \in M_2, there is exactly one other cube aa' sharing the color with aa. But since aa is in XX but not in YY or ZZ, YY and ZZ must both contain aa', that is a(YZ)Xa' \in (Y \cap Z) - X. In addition, since aaa \to a' is clearly injective, the number of cubes aa above would not exceed (YZ)X=n1|(Y \cap Z) - X| = n-1. Combining all of the above, we have

XM2XM2(YZ)+XM2(YZ)2(n1)+(n1)=3(n1). |X \cap M_2| \leq |X \cap M_2 \cap (Y \cup Z)| + |X \cap M_2 - (Y \cup Z)| \leq 2(n-1) + (n-1) = 3(n-1).

Easy check shows that Claim holds.

Case 2: XM1=X \cap M_1 = \emptyset

In this case, the same argument applies with several changes. Indeed, XM2X \cap M_2 now contains at most 2n12n-1 cubes from XYX \cap Y or XZX \cap Z. Any other cube aa in XM2X \cap M_2 corresponds to some aYZa' \in Y \cap Z, possibly with aXa' \in X, so there are at most YZ=n|Y \cap Z| = n of them. All this results in XM2(2n1)+n=3n1|X \cap M_2| \leq (2n-1)+n = 3n-1. Easy check shows that Claim holds.

Summing up Claim over all xx-boxes XX, we get

4n1+n2n(3n+1). 4n_1 + n_2 \leq n(3n + 1).

Obviously, we also have n1+n2+n3=n3n_1 + n_2 + n_3 = n^3.

Now we are prepared to estimate NN. Due to the definition of MiM_i, we have niiDin_i \geq i|D_i|, so

Nn1+n22+n33=n1+n2+n33+4n1+n26n33+3n2+n6=n(n+1)(2n+1)6. \begin{aligned} N &\leq n_1 + \frac{n_2}{2} + \frac{n_3}{3} = \frac{n_1 + n_2 + n_3}{3} + \frac{4n_1 + n_2}{6} \\ &\leq \frac{n^3}{3} + \frac{3n^2 + n}{6} = \frac{n(n+1)(2n+1)}{6}. \end{aligned}

It remains to present an example that reaches this upper bound. Color each set with a different color to provide the desired example.

(i) nn sets of the form {(i,i,i)}\{(i, i, i)\} (1in1 \le i \le n);

(ii) C2nC_2^n sets of the form {(i,j,j),(j,i,i)}\{(i, j, j), (j, i, i)\}, C2nC_2^n sets of the form {(j,i,j),(i,j,i)}\{(j, i, j), (i, j, i)\}, and C2nC_2^n sets of the form {(j,j,i),(i,i,j)}\{(j, j, i), (i, i, j)\} (1i<jn1 \le i < j \le n);

(iii) C3nC_3^n sets of the form {(i,j,k),(j,k,i),(k,i,j)}\{(i, j, k), (j, k, i), (k, i, j)\} with 1i<j<kn1 \le i < j < k \le n, and C3nC_3^n sets of the form {(i,j,k),(j,k,i),(k,i,j)}\{(i, j, k), (j, k, i), (k, i, j)\} with 1i<k<jn1 \le i < k < j \le n.

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 translated into English from zh; metadata (topic, difficulty) added by this project.