ISL 2017 C6

by yayups, Nov 20, 2018, 4:53 AM

Yay I can do something other than geo :)
ISL 2017 C6 wrote:
Let $n > 1$ be a given integer. An $n \times n \times n$ cube is composed of $n^3$ unit cubes. Each unit cube is painted with one colour. For each $n \times n \times 1$ box consisting of $n^2$ unit cubes (in any of the three possible orientations), we consider the set of colours present in that box (each colour is listed only once). This way, we get $3n$ sets of colours, split into three groups according to the orientation.

It happens that for every set in any group, the same set appears in both of the other groups. Determine, in terms of $n$, the maximal possible number of colours that are present.

We claim that the maximal number of colors is $f(n):=1^2+2^2+\cdots+n^2=\boxed{\frac{n(n+1)(2n+1)}{6}}$. When solving the problem, the construction of the equality case was the most difficult part, whereas I found the bound to be fairly natural. We first present the equality case, then the bound.
We construct a scenario with $f(n)$ colors inductively. Suppose we can color a cube of size $n-1$ with $f(n-1)$ colors such that the slices $x=a,y=a,z=a$ had the same set of colors, where we are viewing the cube as $\{1,\ldots,n-2\}^3$. Let a shell be the set of cubes with coordinates
\[S=\{(x,y,z)\in\{0,\ldots,n-1\}^3:0\in\{x,y,z\}\}.\]Also let $X_a=\{(x,y,z)\in S : x=a\}$, and define $Y_a,Z_a$ similarly. We will show that one can color a shell $S$ with $n^2$ colors such that the set of colors of $X_a,Y_a,Z_a$ are identical. Then, by stacking this shell on top of the $n-1$ cube (so the $n-1$ cube is now $\{1,\ldots,n-1\}^3$), we will get the desired configuration (namely the color set for $x=a$ will be the same set for $y=a$ and $z=a$).

We will now color the shell in a way so that the slices $x=a,y=a,z=a$ all have the same color sets. Color the cubes of the form $(x,y,0)$ with $n^2$ different colors. Now, for $a,b$ that are distinct and not $0$, identify
  • $(0,0,a)\sim(a,a,0)$
  • $(a,0,a)\sim(0,a,0)$
  • $(0,a,a)\sim(a,0,0)$
  • $(0,a,b)\sim(a,b,0)\sim(b,0,a)$
where $(x,y,z)\sim(x',y',z')$ if and only if they have the same color. We will first show that the color set of $Y_0$ is the same as the color set of $Z_0$ (the others follow similarly). Note that we have a bijection from $Y_0$ to $Z_0$ that sends
\begin{align*}
(0,0,0)&\mapsto(0,0,0)\\
(0,0,a)&\mapsto(a,a,0)\\
(a,0,0)&\mapsto(a,0,0)\\
(a,0,a)&\mapsto(0,a,0)\\
(a,0,b)&\mapsto(b,a,0)
\end{align*}where again, $a,b,0$ are all different from each other. Note that this bijection preserves color, so the color sets of $Y_0$ and $Z_0$ are the same. We now show that the color set of $X_c$ is the same as that of $Z_c$ where $1\le c\le n-1$ (again the others follow similarly). We have the bijection from $X_c$ to $Z_c$ given by
\begin{align*}
(c,0,0)&\mapsto(0,c,c)\\
(c,0,c)&\mapsto(c,0,c)\\
(c,c,0)&\mapsto(0,0,c)\\
(c,a,0)&\mapsto(a,0,c)\\
(c,0,a)&\mapsto(0,a,c)
\end{align*}where $a\not=c$ and $a\not=0$. Again, this bijection is color preserving, so we have the desired property that the slices $X_c,Y_c,Z_c$ of the shell have the same color sets. As said before, stacking $n$ such shells with decreasing size demonstrates equality of the bound of $f(n)=1^2+2^2+\cdots+n^2$.
We now show that the number of colors is at most $f(n)$ in a valid configuration. Note that swapping two parallel slices (say $x=a$ and $x=b$) preserves the validity of the configuration. Suppose each group of parallel slices had a total of $m$ distinct color sets. Then permute slices so that the slices $x=0$ to $x=m-1$ are all distinct sets (same for $y$ and $z$), and such that the slices $x=a,y=a,z=a$ all have the same color sets for $0\le a\le m-1$.

Now, partition the cube into $n$ shells, starting with size $n$ ($\{(x,y,z)\in\{0,\ldots,n-1\}^3:0\in\{x,y,z\}\}$), then size $n-1$ (union of $\{(x,y,z)\in\{1,\ldots,n-1\}^3:1\in\{x,y,z\}\}$), and so on till size $1$. Note that the cubes in the $(m+1)$th shell and onward (so the shells with size at most $n-m$) are in the slice $x=a$ for some $a\ge m$, so all colors there have shown up in shells $0$ to $m-1$.

Lemma: The shell with size $x$ can have at most $x^2$ colors that did not appear in the shells with larger size.

Proof of Lemma: Suppose we were able to add at least $x^2+1$ new colors. Note that the set of new colors in each of the three orthogonal slices of size $x^2$ (call them the three faces, note they intersect) must be the same (a new color is one that did not appear in the shells of color bigger than $x$). But there must be some new color that is in one of the three faces since there are $x^2+1$ new colors (by pigeon-hole), so we have a contradiction. $\blacksquare$

Therefore, at the shell of size $n$, we add at most $n^2$ new colors, at the next shell (of size $n-1$) we add at most $(n-1)^2$ new colors, and so on until the shell of size $n-m+1$ where we add at most $(n-m+1)^2$ new colors (as noted before, all other shells add no new colors). Therefore, the total number of colors is at most
\[n^2+(n-1)^2+\cdots+(n-m+1)^2\le f(n),\]as desired. This completes the proof. $\blacksquare$
Comments:
I came up with the second part (showing the bound first), and tried then to reverse engineer the equality case. This proved to be quite difficult as thinking in 3D is hard, so I came up with the induction idea. It turns out, you can draw the information of the colors of on shell in 2D. This can be used to motivate the equivalence classes and bijection. Below is a picture of a shell with size $4$ that is colored in accordance with the equality case (its the one I used when solving the problem). Note that the equality case is somewhat forced upon you (after some arbitrary choices, filling out the equality case for $n=4$ felt like a Sudoko puzzle or something).

image

Comment

0 Comments

Random Math Tidbits

avatar

yayups
Shouts
Submit
  • i searched up moving points and found this
    what the actual orz

    by balllightning37, Mar 24, 2024, 9:24 PM

  • what the orz have I seen here

    by avisioner, Feb 7, 2024, 2:50 PM

  • yayups howsopro ORZORZ

    by the_mathmagician, Oct 20, 2021, 12:09 AM

  • orzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorzorz

    by 554183, Oct 18, 2021, 3:32 PM

  • One of the best blogs I have come across :omighty:

    by lneis1, Jul 26, 2021, 2:17 PM

  • Are u surprised by him making IMO
    looking at his posts, it was very likely any way

    by 554183, Jul 8, 2021, 6:05 AM

  • WAIT WHAT HE MADE IMO 2020

    HOW TO BE SO GOD TIER

    ORZORZORZORZ

    by OlympusHero, Jun 6, 2021, 3:00 AM

  • give contrib thanqies

    by RedFireTruck, May 5, 2021, 5:16 PM

  • hey there

    by yofro, Apr 13, 2021, 1:44 AM

  • @below He is contestant 2 :omighty:

    by Gaussian_cyber, Sep 20, 2020, 10:37 AM

  • did you make IMO 2020? :)
    which contestant are you?

    by Orestis_Lignos, Sep 18, 2020, 2:27 PM

  • yayups IMO 2020 :omighty:

    by fukano_2, Sep 10, 2020, 6:30 AM

  • how do u know he made IMO?

    by Puffer13, Sep 6, 2020, 12:12 PM

  • Congrats on USA IMO!

    by Imayormaynotknowcalculus, Aug 15, 2020, 4:52 PM

  • IMO 2020 :o :omighty:

    by cmsgr8er, Aug 7, 2020, 8:16 PM

93 shouts
Contributors
padyayups
Tags
About Owner
  • Posts: 1614
  • Joined: Apr 17, 2013
Blog Stats
  • Blog created: Jun 26, 2017
  • Total entries: 45
  • Total visits: 37756
  • Total comments: 64
Search Blog
a