To each point of the set , formed by the points of three-dimensional space whose coordinates are integers, we assign a color from among possible colors. Prove that there necessarily exists some right parallelepiped (a polyhedron with six faces in which each face is a rectangle) whose vertices belong to and are all of the same color.
Problem 1391
Official solution
We set . For each , we consider the set . By the Pigeonhole Principle, we can guarantee that, for each , there are two points of of the same color. There may be more than two, or it may happen for more than one color; it does not matter, among the we mark two that share a color. Taking into account that there are possible values of , again by the Pigeonhole Principle, there will exist at least of these (say ) in which the color repeated in all of them is the same (color ). Since the number of ways to choose the two positions (values of ) in each of these , with , is , using the Pigeonhole Principle once again, we can guarantee that there exist and , with , in which color appears twice in each and in the same positions. That is, it is proved that in the plane , and with values of the coordinate and of the coordinate , there exist four points
which are vertices of a rectangle (always with Sides Parallel to the Grid Edges: SPGE) and all four of the same color.
The number, , of ways to choose, in a grid of points, four points that are vertices of an SPGE rectangle is the same as the number of ways to choose two values of the abscissa and two values of the ordinate, that is .
For each we consider the grid . We have grids and in each of them there are four points that share a color and are vertices of an SPGE rectangle. By the Pigeonhole Principle, there are at least of these grids in which the four points of each one occupy the same positions with respect to their first two coordinates. Finally, again by the Pigeonhole Principle, there are (at least) two of these grids such that the common color of the four vertices of one is the same as the common color of the four vertices of the other. Thus we have eight points of that share a color and are vertices of a right parallelepiped.