MathDB
[(n - 1)^k - (-1)^k] /n is number of ways with k buses, between 2 cities

Source: Dutch IMO TST2 2011 p1

January 10, 2020
combinatorics

Problem Statement

Let n2n \ge 2 and k1k \ge1 be positive 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 in which you can travel from AA to BB by using exactly kk buses is equal to (n1)k(1)kn\frac{(n - 1)^k - (-1)^k}{n} .