Maths Olympiad Prep

Track / Stage 7 / 102 of 300 #1502 of 1964

Problem 1502

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.2 Prove it

An n×n×nn\times n\times n 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

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

1. Initial Setup and Infinite Version:
- Consider an infinite 3D grid of unit cubes, each with centers labeled by Z3\mathbb{Z}^3.
- 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>4.

4. Identifying a Peaky Vertex:
- Traverse the polygon to find a "peaky" vertex, b1b_1, which has the highest zz-coordinate.
- Travel from b1b_1 to b2b_2, then b3b_3, etc., until reaching a non-peaky vertex cc.
- This forms a section of the polygon ab1b2bkcab_1b_2 \cdots b_k c that enters and leaves the region of highest zz-coordinate tt.

5. Constructing the Modified Polygon:
- Define f(v)f(v) for a vertex vv with zz-coordinate tt as the vertex with the same xx and yy coordinates but with zz-coordinate t1t-1.
- For an edge e=e1e2e = e_1 e_2 with both endpoints having zz-coordinate tt, let s(e)s(e) denote the unit square with vertices e1,e2,f(e1),f(e2)e_1, e_2, f(e_1), f(e_2).
- Replace the section ab1b2bkcab_1b_2 \cdots b_k c with af(b2)f(bk1)ca f(b_2) \cdots f(b_{k-1})c.

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 s(b1b2),s(b2b3),,s(bk1bk)s(b_1b_2), s(b_2b_3), \cdots, s(b_{k-1}b_k) 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.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.