An cube is divided into unit cubes. We are given a closed non-self-intersecting polygon (in space), each of whose sides joins the centers of two unit cubes sharing a common face. The faces of unit cubes which intersect the polygon are said to be distinguished. Prove that the edges of the unit cubes may be colored in two colors so that each distinguished face has an odd number of edges of each color, while each nondistinguished face has an even number of edges of each color.
M. Smurov
Problem 1502
Official solution
1. Initial Setup and Infinite Version:
- Consider an infinite 3D grid of unit cubes, each with centers labeled by .
- Initially, color all edges of all unit cubes white.
- We aim to show that for any closed non-self-intersecting polygon, we can select some edges to be black such that:
- Each distinguished face (intersected by the polygon) has an odd number of black edges.
- Each nondistinguished face has an even number of black edges.
2. Toggling Unit Squares:
- Any unit square with vertices at lattice points can be "toggled" by painting some edge black.
- It suffices to show that we can pick some lattice unit squares such that an edge is in an odd number of unit squares if and only if it is an edge of the polygon.
3. Induction on the Perimeter of the Polygon:
- Base Case: When the polygon has a perimeter of 4, it is a simple square, and it is straightforward to color the edges to satisfy the conditions.
- Inductive Step: Assume the statement holds for polygons with a perimeter of .
4. Identifying a Peaky Vertex:
- Traverse the polygon to find a "peaky" vertex, , which has the highest -coordinate.
- Travel from to , then , etc., until reaching a non-peaky vertex .
- This forms a section of the polygon that enters and leaves the region of highest -coordinate .
5. Constructing the Modified Polygon:
- Define for a vertex with -coordinate as the vertex with the same and coordinates but with -coordinate .
- For an edge with both endpoints having -coordinate , let denote the unit square with vertices .
- Replace the section with .
6. Applying Induction:
- By induction, we can paint some edges black so that any face has an odd number of black edges if and only if it is intersected by this modified polygon.
- Toggle the colors of the edges corresponding to to obtain a coloring of edges that completes the induction.
7. Conclusion:
- By induction, we have shown that the edges of the unit cubes can be colored in two colors such that each distinguished face has an odd number of edges of each color, while each nondistinguished face has an even number of edges of each color.