Maths Olympiad Prep

Library / /70 of 87

Combinatorics Difficulty 7.0 National Olympiad, round 2 Prove it Russia

Let NN be a positive integer. A cube (2N+1)×(2N+1)×(2N+1)(2N+1) \times (2N+1) \times (2N+1) is made of (2N+1)3(2N+1)^3 unit cubes; each unit cube is either black or white. It turned out that among any 8 unit cubes which form a cube 2×2×22 \times 2 \times 2 the number of black unit cubes is not greater than 4. Find the greatest possible total number of black unit cubes.

Solution

Ответ. (N+1)2(4N+1)(N+1)^2(4N+1).

Let k=(N+1)2(4N+1)k = (N+1)^2(4N+1). Introduce a coordinate system where all vertices of unit cubes have integer coordinates from 00 to 2N+12N+1.

First, we present an example showing that the number of black cubes can indeed be kk. For each cube, consider its vertex closest to the origin (its coordinates range from 00 to 2N2N). Let the cube be black if at least two coordinates of this vertex are even, and white otherwise. Clearly, in any 2×2×22 \times 2 \times 2 cube there will be exactly 44 black and 44 white cubes. The number of black cubes with all three corresponding coordinates even is (N+1)3(N+1)^3, and the number with exactly two even coordinates is 3(N+1)2N3(N+1)^2N, making the total number of black cubes equal to kk.

Now we prove this example is optimal. Consider a cube partitioned into black and white unit cubes satisfying the problem's conditions. We'll call a cube dark or light if it's respectively black or white in the above example.

For each point (a,b,c)(a, b, c) in the large cube, define its xx-, yy-, and zz-rank as rx=min(a,2N+1a)r_x = \min(a, 2N + 1 - a), ry=min(b,2N+1b)r_y = \min(b, 2N + 1 - b), and rz=min(c,2N+1c)r_z = \min(c, 2N+1-c). The rank is r=min(rx,ry,rz)r = \min(r_x, r_y, r_z) - the distance to the nearest face of the large cube.

Mark all unit cube vertices with odd ranks. For each marked vertex, consider the difference between the number of black and white cubes meeting at it. Since these vertices are centers of 2×2×22 \times 2 \times 2 cubes, this difference is non-positive, making the total sum Σ\Sigma of such differences non-positive.

Define the multiplicity of a unit cube as the number of its marked vertices. Then Σ\Sigma equals the difference between the sum of multiplicities of black cubes and white cubes. We need to show that if this difference is non-positive, the number \ell of black cubes doesn't exceed kk.

Let rxryrzr_x \le r_y \le r_z be the ranks of a cube's center. Then:
- If rx<ryr_x < r_y, its multiplicity is 44
- If rx=ry=12+dr_x = r_y = \frac{1}{2} + d with even dd, multiplicity is <4< 4 and it's dark
- If rx=ry=12+dr_x = r_y = \frac{1}{2} + d with odd dd, multiplicity is >4> 4 and it's light

Thus, dark cubes have multiplicity 4\le 4, light cubes 4\ge 4.

Let s1s(2N+1)3s_1 \le \dots \le s_{(2N+1)^3} be the multiplicities in order. From our example where Σ=0\Sigma = 0, we have s1++sksk+1s(2N+1)3=0s_1 + \dots + s_k - s_{k+1} - \dots - s_{(2N+1)^3} = 0. If >k\ell > k:
0Σs1++ss+1s(2N+1)3>>s1++sksk+1s(2N+1)3=0, \begin{aligned} 0 \ge \Sigma &\ge s_1 + \dots + s_\ell - s_{\ell+1} - \dots - s_{(2N+1)^3} > \\ &> s_1 + \dots + s_k - s_{k+1} - \dots - s_{(2N+1)^3} = 0, \end{aligned}
since sk+14s_{k+1} \ge 4. This contradiction proves k\ell \le k.

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.