Let be a positive integer. A cube is made of unit cubes; each unit cube is either black or white. It turned out that among any 8 unit cubes which form a cube the number of black unit cubes is not greater than 4. Find the greatest possible total number of black unit cubes.
Solution
Ответ. .
Let . Introduce a coordinate system where all vertices of unit cubes have integer coordinates from to .
First, we present an example showing that the number of black cubes can indeed be . For each cube, consider its vertex closest to the origin (its coordinates range from to ). Let the cube be black if at least two coordinates of this vertex are even, and white otherwise. Clearly, in any cube there will be exactly black and white cubes. The number of black cubes with all three corresponding coordinates even is , and the number with exactly two even coordinates is , making the total number of black cubes equal to .
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 in the large cube, define its -, -, and -rank as , , and . The rank is - 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 cubes, this difference is non-positive, making the total sum of such differences non-positive.
Define the multiplicity of a unit cube as the number of its marked vertices. Then 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 of black cubes doesn't exceed .
Let be the ranks of a cube's center. Then:
- If , its multiplicity is
- If with even , multiplicity is and it's dark
- If with odd , multiplicity is and it's light
Thus, dark cubes have multiplicity , light cubes .
Let be the multiplicities in order. From our example where , we have . If :
since . This contradiction proves .