Skip to main content
OlympiadHQ

Browse · MathNet

Print

South African Mathematics Olympiad

South Africa counting and probability

Problem

Several small villages are situated on the banks of a straight river. On one side, there are villages in a row, and on the other there are villages in a row. We would like to build bridges, each of which connects a village on the one side with a village on the other side. The bridges must be straight, must not cross, and it should be possible to get from any village to any other village using only those bridges (and not any roads that might exist between villages on the same side of the river). How many different ways are there to build the bridges?
Solution
We show that the answer is generally if there are towns on one side and on the other. In our particular instance, there are thus ways to build the bridges. We prove our general formula by induction on the total number of villages. Note that the formula always holds if either or . In this case, , and indeed there is only one possibility: to build bridges from the single village on the one side of the river to all other villages. This forms the base of our induction.

We call the villages one the one side , and the villages on the other side (in this order). Note first that and cannot both be connected by a bridge to villages other than each other: if there is a bridge between and and a bridge between and , where , then these bridges cross, which is impossible. This leaves us with two possibilities:

is directly connected to only, while is connected to the rest. In this case, we can ignore and only count the possibilities to build bridges between and . By the induction hypothesis, this can be done in ways. is directly connected to only, while is connected to the rest. In this case, we can ignore , and the induction hypothesis shows that there are possibilities.

Altogether, this gives us possibilities to build the bridges, which completes our induction.
Final answer
818809200

Techniques

Recursion, bijectionInduction / smoothing