Maths Olympiad Prep

Library / /20 of 34

Combinatorics Difficulty 7.0 National Olympiad Prove it United States

In the nation of Onewaynia, certain pairs of cities are connected by one-way roads. Every road connects exactly two cities (roads are allowed to cross each other, e.g., via bridges), and each pair of cities has at most one road between them. Moreover, every city has exactly two roads leaving it and exactly two roads entering it.
We wish to close half the roads of Onewaynia in such a way that every city has exactly one road leaving it and exactly one road entering it. Show that the number of ways to do so is a power of 2 greater than 1 (i.e. of the form 2n2^n for some integer n1n \ge 1).

Solution

In the language of graph theory, we have a simple digraph GG which is 2-regular and we seek the number of sub-digraphs which are 1-regular. We now present two solution paths.

First solution, combinatorial We construct a simple undirected bipartite graph Γ\Gamma as follows:
* the vertex set consists of two copies of V(G)V(G), say VoutV_{\text{out}} and VinV_{\text{in}}; and
* for vVoutv \in V_{\text{out}} and wVinw \in V_{\text{in}} we have an undirected edge vwE(Γ)vw \in E(\Gamma) if and only if the directed edge vwv \to w is in GG.
Moreover, the desired sub-digraphs of HH correspond exactly to perfect matchings of Γ\Gamma. However the graph Γ\Gamma is 2-regular and hence consists of several disjoint (simple) cycles of even length. If there are nn such cycles, the number of perfect matchings is 2n2^n, as desired.

**Second solution by linear algebra over F2\mathbb{F}_2 (Brian Lawrence)** This is actually not that different from the first solution. For each edge ee, we create an indicator variable xex_e. We then require for each vertex vv that:
* If e1e_1 and e2e_2 are the two edges leaving vv, then we require xe1+xe21(mod2)x_{e_1} + x_{e_2} \equiv 1 \pmod 2.
* If e3e_3 and e4e_4 are the two edges entering vv, then we require xe3+xe41(mod2)x_{e_3} + x_{e_4} \equiv 1 \pmod 2.

We thus get a large system of equations. Moreover, the solutions come in natural pairs x\vec{x} and x+1\vec{x} + \vec{1} and therefore the number of solutions is either zero, or a power of two. So we just have to prove there is at least one solution.
For linear algebra reasons, there can only be zero solutions if some nontrivial linear combination of the equations gives the sum 010 \equiv 1. So suppose we added up some subset SS of the equations for which every variable appeared on the left-hand side an even number of times. Then every variable that did appear appeared exactly twice; and accordingly we see that the edges corresponding to these variables form one or more even cycles as in the previous solution. Of course, this means S|S| is even, so we really have 00(mod2)0 \equiv 0 \pmod 2 as needed.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.