Maths Olympiad Prep

Library / /684 of 740

, 2019

Combinatorics Difficulty 5.7 AIME, harder Prove it United States

Problem:

In Middle-Earth, nine cities form a 33 by 33 grid. The top left city is the capital of Gondor and the bottom right city is the capital of Mordor. How many ways can the remaining cities be divided among the two nations such that all cities in a country can be reached from its capital via the grid-lines without passing through a city of the other country?

Solution

Solution:

For convenience, we will center the grid on the origin of the coordinate plane and align the outer corners of the grid with the points (±1,±1)(\pm 1, \pm 1), so that (1,1)(-1,1) is the capital of Gondor and (1,1)(1,-1) is the capital of Mordor.

We will use casework on which nation the city at (0,0)(0,0) is part of. Assume that it belongs to Gondor. Then consider the sequence of cities at (1,0)(1,0), (1,1)(1,1), (0,1)(0,1). If one of these belongs to Mordor, then all of the previous cities belong to Mordor, since Mordor must be connected. So we have 44 choices for which cities belong to Mordor. Note that this also makes all the other cities in the sequence connected to Gondor. Similarly, we have 44 (independent) choices for the sequence of cities (0,1)(0,-1), (1,1)(-1,-1), (1,0)(-1,0). All of these choices keep (0,0)(0,0) connected to Gondor except the choice that assigns all cities in both sequences to Mordor. Putting this together, the answer is 2(441)=302(4 \cdot 4-1)=30.

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.