coins of weights are given. Each coin is colored in one of colors and there are four coins of each color. Show that all these coins can be partitioned into two sets with the same total weight, such that each set contains two coins of each color.
(Hungary)
, 2020
Solutions — 2
Solution 1
Let us pair the coins with weights summing up to , resulting in the set of pairs: . It suffices to partition into two sets, each consisting of pairs, such that each set contains two coins of each color.
Introduce a multi-graph (i.e., a graph with loops and multiple edges allowed) on vertices, so that each vertex corresponds to a color. For each pair of coins from , we add an edge between the vertices corresponding to the colors of those coins. Note that each vertex has degree . Also, a desired partition of the coins corresponds to a coloring of the edges of in two colors, say red and blue, so that each vertex has degree with respect to each color (i.e., each vertex has equal red and blue degrees).
To complete the solution, it suffices to provide such a coloring for each component of . Since all degrees of the vertices are even, in there exists an Euler circuit (i.e., a circuit passing through each edge of exactly once). Note that the number of edges in is even (it equals twice the number of vertices in ). Hence all the edges can be colored red and blue so that any two edges adjacent in have different colors (one may move along and color the edges one by one alternating red and blue colors). Thus in each vertex has equal red and blue degrees, as desired.
Solution 2
As in Solution 1, we will show that it is possible to partition pairs , into two sets, each consisting of pairs, such that each set contains two coins of each color.
Introduce a multi-graph (i.e., a graph with multiple edges allowed) whose vertices correspond to coins; thus we have vertices of colors so that there are four vertices of each color. Connect pairs of vertices by black edges.
Further, for each monochromatic quadruple of vertices we add a pair of grey edges forming a matching, e.g., and . In each of colors of coins we can choose one of three possible matchings; this results in ways of constructing grey edges. Let us call each of possible graphs a cyclic graph. Note that in a cyclic graph each vertex has both black and grey degrees equal to . Hence is a union of disjoint cycles, and in each cycle black and grey edges alternate (in particular, all cycles have even lengths).
It suffices to find a cyclic graph with all its cycle lengths divisible by . Indeed, in this case, for each cycle we start from some vertex, move along the cycle and recolor the black edges either to red or to blue, alternating red and blue colors. Now blue and red edges define the required partition, since for each monochromatic quadruple of vertices the grey edges provide a bijection between the endpoints of red and blue edges.
Among all possible cyclic graphs, let us choose graph having the minimal number of components (i.e., cycles). The following claim completes the solution.
Claim. In , all cycle lengths are divisible by .
Proof. Assuming the contrary, choose a cycle with an odd number of grey edges. For some color the cycle contains exactly one grey edge joining two vertices of color , while the other edge joining two vertices of color lies in another cycle . Now delete edges and and add edges and . By this switch we again obtain a cyclic graph and decrease the number of cycles by . This contradicts the choice of .