A positive integer $n$ is given. A cube $3\times3\times3$ is built from $26$ white and $1$ black cubes $1\times1\times1$ such that the black cube is in the center of $3\times3\times3$-cube. A cube $3n\times 3n\times 3n$ is formed by $n^3$ such $3\times3\times3$-cubes. What is the smallest number of white cubes which should be colored in red in such a way that every white cube will have at least one common vertex with a red one.
HIDE: thanks Thanks to the user Vlados021 for translating the problem.Problem
Source:
Tags:
05.05.2019 22:25
We say that something is covered if it is red or has a common vertex with a red square/cube.
23.06.2019 23:01
Bump
28.07.2019 16:30
Bump
27.09.2019 03:57
Bump Bump
02.01.2020 07:48
Is this smallest number:n*n*n+n
03.04.2020 20:04
The answer is $(n+1)n^2$
19.04.2020 23:44
bump Belgutei wrote: Is this smallest number:n*n*n+n JBMO2020 wrote: The answer is $(n+1)n^2$ see "partial progress on 3D?" part and also a complete proof for 2D in post #2
26.06.2020 12:51
The answer is $n^2(n+1)$ as expected. For $x=1,2,\dots,3n$ let \[ f(x)= \begin{cases} \frac{x}{3} & \text{ if } x\equiv 0 \mod 3\\ n-\frac{x-1}{3} & \text{ if } x\equiv 1\mod 3\\ 0 & \text{ if } x\equiv 2\mod 3 \end{cases} \]For a cube with coordinate $x,y,z$ label it with $f(x)f(y)f(z)$, then the sum of all labels is equal to $n^3(n+1)^3$. For each white cube (one of whose coordinates is not 2 modulo 3), the sum of labels on the $3^3=27$ it touches is at most $n(n+1)^2$, so we need to paint at least $n^2(n+1)$ cubes red.
13.03.2021 23:30
The answer is $n^2(n+1)$. We first solve the 2d case. The answer is $n(n+1)$. The construction is placing red squares at $(3k-1,1)$ and $(3k-1,3k)$ for $k\ge 1$. To show this is optimal, let $f(n)$ be the number of squares I can label such that no two can be covered by one red square. I claim $f(n)-f(n-2)\ge 4n-2$. Indeed, consider placing red squares at $(3k,1), (1,3k), (3n, 3k), (3k, 3n)$. We've placed $4n-2$ squares and this reduces to a $3(n-2)^2$ square. Since $f(0)=0, f(1)=2$, we are done. Now, we solve the 3d case. The construction is simply the 2d construction at layers $3k+2, k\ge 0$. Labelling squares is also labelling on layers $3k+1, k\ge 0$.
Attachments:

25.12.2022 17:00
(n+1)n^2