Maths Olympiad Prep

Track / Stage 5 / 214 of 400 #814 of 1964

Problem 814

AIME late
Combinatorics Difficulty 5.5 Find the answer

11.8. Given a natural number nn. From 26 unit white cubes and one black cube, a 3×3×33 \times 3 \times 3 cube is assembled such that the black cube is at its center. From n3n^{3} such cubes with edge 3, a cube with edge 3n3 n is formed. What is the minimum number of white cubes that can be repainted red so that each white cube has at least one common vertex with some red

(I. Bogdanov)

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Official solution

Answer. (n+1)n2(n+1) n^{2}.

Solution. Introduce a coordinate system so that the centers of the cubes have coordinates from 1 to 3n3 n along each axis. Assign each cube the coordinates of its center. Thus, a cube is black if and only if all its coordinates give a remainder of 2 when divided by 3.

Paint red all white cubes with coordinates (a,b,c)(a, b, c), where aa is divisible by 3, and bc2(mod3)b \equiv c \equiv 2(\bmod 3), as well as all cubes with coordinates (1,b,c)(1, b, c), where bc2(mod3)b \equiv c \equiv 2 \quad(\bmod 3). It is easy to see that this results in (n+1)n2(n+1) n^{2} red cubes, and the problem's requirements are met. It remains to show that the required result cannot be achieved by painting fewer than (n+1)n2(n+1) n^{2} cubes.

For i=1,2,,ni=1,2, \ldots, n set w3i=i,w3i1=0,w3i2=w_{3 i}=i, w_{3 i-1}=0, w_{3 i-2}= =n+1i=n+1-i; the sequence (wi)\left(w_{i}\right) looks like this: n,0,1,nn, 0,1, n- 1,0,2,n2,,1,0,n-1,0,2, n-2, \ldots, 1,0, n. Write the number wawbwcw_{a} w_{b} w_{c} in each cube with coordinates (a,b,c)(a, b, c) (in particular, zeros are written in black cubes). Then the total sum of all numbers written in white cubes will be Σ=(w1++w3n)3=n3(n+1)3\Sigma=\left(w_{1}+\ldots+w_{3 n}\right)^{3}=n^{3}(n+1)^{3}.

Let the cost S(X)S(X) of a cube XX be the sum of the numbers in all cubes that share a vertex with it (including XX itself). Then, in any coloring that satisfies the requirements, the sum of the costs of the red cubes is not less than Σ\Sigma. We will now prove that S(X)(n+1)2nS(X) \leqslant(n+1)^{2} n for any white cube XX. From this it follows that at least Σ(n+1)2n=(n+1)n2\frac{\Sigma}{(n+1)^{2} n}=(n+1) n^{2} cubes must be painted red, as required.

Let (a,b,c)(a, b, c) be the coordinates of the cube XX. The abscissas of all cubes that share a vertex with it are equal to aa or a±1a \pm 1; the same statement is true for the other coordinates. Therefore, S(X)=(wa1+wa+wa+1)(wb1+wb+wb+1)(wc1+wc+S(X)=\left(w_{a-1}+w_{a}+w_{a+1}\right)\left(w_{b-1}+w_{b}+w_{b+1}\right)\left(w_{c-1}+w_{c}+\right. +wc+1)\left.+w_{c+1}\right), where we set w0=w3n+1=0w_{0}=w_{3 n+1}=0. It remains to note that wt1+wt+wt+1=nw_{t-1}+w_{t}+w_{t+1}=n if t≢2(mod3)t \not \equiv 2(\bmod 3), and wt1+wt+wt+1=n+1w_{t-1}+w_{t}+w_{t+1}=n+1 otherwise. Since not all coordinates of XX give a remainder of 2, it follows that S(X)(n+1)2nS(X) \leqslant(n+1)^{2} n.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.