Maths Olympiad Prep

Library / /364 of 520

Combinatorics Difficulty 6.8 National olympiad Prove it

Let n2n \geq 2 and k1k \geq 1 be integers. In a country, there are nn cities and between each pair of cities, there is a bus connection in both directions. Let AA and BB be two different cities. Prove that the number of ways to travel from AA to BB using exactly kk buses is equal to

(n1)k(1)kn \frac{(n-1)^{k}-(-1)^{k}}{n}

Solution

Let α(k)\alpha(k) be the number of ways to travel from city AA to city BAB \neq A with kk buses. Let β(k)\beta(k) be the number of ways to travel from city AA to city AA with kk buses. If we start in city AA and then take kk buses, this can be done in (n1)k(n-1)^{k} ways. In β(k)\beta(k) of these cases, we end up in city AA, and in (n1)α(k)(n-1) \alpha(k) of these cases, we end up in a city other than AA. Therefore,

(n1)α(k)+β(k)=(n1)k. (n-1) \alpha(k)+\beta(k)=(n-1)^{k} .

Now take k2k \geq 2. To travel from city AA to city AA with exactly kk buses, we take a bus from AA to any city (this can be done in (n1)(n-1) ways); then we must travel from a city not equal to AA to city AA with k1k-1 buses, which can be done in α(k1)\alpha(k-1) ways. Thus,

β(k)=(n1)α(k1) for k2 \beta(k)=(n-1) \alpha(k-1) \quad \text { for } k \geq 2

We now substitute this expression for β(k)\beta(k) into (1). This gives us for k2k \geq 2 that

(n1)α(k)+(n1)α(k1)=(n1)k (n-1) \alpha(k)+(n-1) \alpha(k-1)=(n-1)^{k}

and thus

α(k)=(n1)k1α(k1). \alpha(k)=(n-1)^{k-1}-\alpha(k-1) .

We will now prove by induction on kk that for n2n \geq 2 and k1k \geq 1,

α(k)=(n1)k(1)kn. \alpha(k)=\frac{(n-1)^{k}-(-1)^{k}}{n} .

For k=1k=1, this gives α(1)=(n1)+1n=1\alpha(1)=\frac{(n-1)+1}{n}=1, which is correct, since there is exactly one way to travel from city AA to city BAB \neq A with one bus. Now let m1m \geq 1 be an integer, and assume that we have proven the expression for α(k)\alpha(k) for k=mk=m. Then, using (3), for k=m+12k=m+1 \geq 2 we have

α(m+1)=(n1)mα(m)=(n1)m(n1)m(1)mn=n(n1)m(n1)m+(1)mn=(n1)m+1(1)m+1n \begin{aligned} & \alpha(m+1)=(n-1)^{m}-\alpha(m)=(n-1)^{m}-\frac{(n-1)^{m}-(-1)^{m}}{n} \\ & =\frac{n(n-1)^{m}-(n-1)^{m}+(-1)^{m}}{n}=\frac{(n-1)^{m+1}-(-1)^{m+1}}{n} \end{aligned}

which is exactly the expression we wanted to prove for k=m+1k=m+1. This completes the induction.

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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.