Maths Olympiad Prep

Library / /21 of 24

, 2019

Combinatorics Difficulty 9.0 IMO level Prove it Balkan Mathematical Olympiad

A town-planner has built an isolated city whose road network consists of 2N2N roundabouts, each connecting exactly three roads. A series of tunnels and bridges ensure that all roads in the town meet only at roundabouts. All roads are two-way, and each roundabout is oriented clockwise.
Vlad has recently passed his driving test, and is nervous about roundabouts. He starts driving from his house, and always takes the first exit at each roundabout he encounters. It turns out his journey includes every road in the town in both directions before he arrives back at the starting point in the starting direction. For what values of NN is this possible?

Solution

NN odd. In fact, the number of trajectories has the same parity as NN.
The setting is a (multi)graph where every vertex has degree three. Each vertex has an orientation, an ordering of its incident edges. We call Vlad's possible paths trajectories, and a complete trajectory if he traverses every edge in both directions. We may assume the multigraph is connected, as otherwise a complete trajectory is certainly not possible.

N odd (construction): There is an example when N=1N = 1, as shown in Figure 10.
Figure 1
Figure 10: C4: N=1N = 1
There are two 3-regular graphs on two vertices, the handcuffs and theta. The handcuffs fail since each self-loop has its own trajectory, but the theta does work for two of the four possible orientations.
We now construct examples for N3N \ge 3 odd by induction. Suppose we have a valid 3-regular graph on 2(N2)2(N-2) vertices, such that Vlad's trajectory is complete. This has at least two (undirected) edges, so pick two of them, ee and ee'. (It does not matter if they share incident vertices.) Split both ee and ee' into three, by adding two new vertices to each, and connect as in Figure 11.
New vertices have degree three; other degrees are unchanged, so the graph is still 3-regular. For each edge ee and ee', pick a direction. (Both up in the figure.) These directed edges are part of the complete trajectory given by the induction hypothesis. Choose the orientations of the new vertices to preserve these two sections of the trajectory. The remaining two directed edges in the original graph will end up as partial trajectories in the new graph (see Figure 11).
However, because all the new partial trajectories start and finish at the same places and in the same directions in the original graph, and no other directed edges are changed, the trajectory remains complete. The result for NN odd follows by induction.

N even: Split each edge ee in the graph into two directed edges e\overrightarrow{e} and e\overrightarrow{e'}. Let DD be the set of the 6N6N directed edges. Let α\alpha be the permutation of DD which exchanges e\overrightarrow{e} and e\overrightarrow{e'}.

Now, for each roundabout vv, let e1,e2,e3\vec{e}_1, \vec{e}_2, \vec{e}_3 be the three directed edges into vv. The roundabout has a cyclic orientation, either (e1,e2,e3)(\vec{e}_1, \vec{e}_2, \vec{e}_3) or (e1,e3,e2)(\vec{e}_1, \vec{e}_3, \vec{e}_2). Let θ(e1)\theta(\vec{e}_1) describe the directed edge after e1\vec{e}_1 in this orientation. By considering all roundabouts, θ\theta is also a permutation of DD.
Note that θ(e1)\theta(\vec{e}_1) is directed towards vv, so the directed edge after e1\vec{e}_1 in a trajectory is α(θ(e1))\alpha(\theta(\vec{e}_1)). So Vlad makes a complete trajectory precisely if αθ\alpha\theta is a cyclic permutation of DD. Note that the cycle type of θ\theta is (3,3,,3)(3, 3, \dots, 3), and the cycle type of α\alpha is (2,2,,2)(2, 2, \dots, 2). So θ\theta is always an even permutation, while α\alpha is an even permutation precisely when NN is even.
However, a cyclic permutation of DD is always odd, since D=6N|D| = 6N is even. So there is certainly no complete trajectory when NN is even. \square

Alternative I:
We claim that in a graph with EE edges, and VV vertices, the number of trajectories, TT, has the same parity as V+EV + E. We allow degenerate cases of this statement, for example graphs that are disconnected, or trajectories that consist of only a single vertex, so that the graph that consists of VV vertices and no edges has precisely VV trajectories, and thus satisfies the given claim. This shows that NN cannot be even.
We prove the claim by induction on EE. Suppose we are given a graph with E1E \ge 1 edges and TT trajectories. Then consider any edge ee, and its two directions e,e\vec{e}, \leftarrow e. Let AA be the sequence of directed edges starting from the one after e\vec{e} in its trajectory, ending at the edge before e\leftarrow e or e\vec{e}, whichever appears first. Similarly define BB starting after e\leftarrow e. AA and BB are disjoint, and may be empty.
Figure 2
Figure 12: C4: (a) Initial trajectories. (b) After removing ee.
We consider removing ee, but otherwise keep the orientations at its incident vertices the same. Then if e,e\vec{e}, \leftarrow e are in different trajectories, these are the concatenations (e,A)(\vec{e}, A) and (e,B)(\leftarrow e, B). After removing ee, for each direction e,e\vec{e}, \leftarrow e, instead of proceeding onto this directed edge, the relevant trajectory moves to the other trajectory. In other words, the resulting trajectory is the concatenation (A,B)(A, B). So TT decreases by one.

Similarly, if both directions of ee are part of the same trajectory, this is the concatenation (e,A,e,B)(\vec{e}, A, \overleftarrow{e}, B). Then when we remove ee, this splits into the two trajectories (A)(A) and (B)(B), by an essentially identical argument. So TT increases by one. Thus in both cases, removing one edge changes the parity of TT, and so the claim follows by induction on EE.

In the original setting we have V=2NV = 2N, E=3NE = 3N, so TT must have the same parity as 5N5N. Thus T=1T = 1 is impossible when NN is even. \square

Alternative II:
An alternative is to induct on NN, using the following stronger claim.
Claim: You can't have exactly one trajectory for NN even; nor exactly two trajectories for a connected graph with NN odd.
Proof of claim: We have to check that the claim is true for N=1,2N=1,2. Checking N=2N=2 requires a couple of case. Alternatively, one can argue that a single cyclic edge with no vertices (!) counts as the case N=0N=0. Now use strong induction by contradiction. If NN is even, but has exactly one trajectory, then there are no self-loops, so pick any edge ee, connecting vertices vwv \neq w. Remove ee, then remove vv, and connect vv's other two incident edges (which are distinct from each other and ee) to form a single edge. Do the same for ww.
Figure 3
Figure 13: C4: Trajectories in the old and new graphs

The effect on the trajectories is shown in Figure 13. Note that the new graph is still 3-regular. We then argue as in Proof I that this operation splits the trajectory into two. So if the new graph is connected, this contradicts the hypothesis for N1N-1. Alternately, the new graph might consist of two components. Since it is 3-regular, each component has an even number of vertices. The total number of vertices is 2(N1)2(N-1), which is 2 modulo 4, and so one of the components has a number of vertices which is a multiple of four, and a complete trajectory of this component, which also contradicts the induction hypothesis.
Now suppose NN is odd, but the original oriented graph has exactly two trajectories. If there is a self-loop at some vertex vv, then one of the trajectories involves only this self-loop. So remove this vertex, and consider the other vertex ww connected to vv. Remove ww and join up its other two incident edges. The resulting graph corresponds to NN even, and has a complete trajectory, which is a contradiction.

Otherwise, there are no self-loops, but the graph is connected hence there must be one edge ee connecting vertices vwv \neq w which has one trajectory in one direction, and the other trajectory in the other direction. Collapse this edge as in Figure 13, and again by the same argument as in Proof I, this merges the two trajectories, giving a complete trajectory for NN even, and a contradiction. \square

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 and solution reproduced as published; topic and difficulty added by this site.