Maths Olympiad Prep

Library / /29 of 30

Combinatorics Difficulty 6.6 National olympiad Find the answer

In Mathcity, there are infinitely many buses and infinitely many stations. The stations are indexed by the powers of 2:1,2,4,8,16,...2: 1, 2, 4, 8, 16, ... Each bus goes by finitely many stations, and the bus number is the sum of all the stations it goes by. For simplifications, the mayor of Mathcity wishes that the bus numbers form an arithmetic progression with common difference rr and whose first term is the favourite number of the mayor. For which positive integers rr is it always possible that, no matter the favourite number of the mayor, given any mm stations, there is a bus going by all of them?

A number or a short expression. Spacing and $ signs are ignored.

Solution

We are given a problem involving buses and stations in Mathcity, where stations are indexed by powers of 2, such as 1,2,4,8,1, 2, 4, 8, \ldots. Each bus visits finitely many stations, and its number is the sum of the indices of these stations. The mayor wants the bus numbers to form an arithmetic progression with the first term being his favorite number and a common difference rr.

The key is to determine for which positive integers rr it is always possible, regardless of the mayor's favorite number, that for any mm stations, there is a bus visiting all of them.

### Analyzing the Problem

The stations are indexed by powers of 2, which implies each station has a unique binary representation consisting of a single 11 bit.

1. The arithmetic progression of bus numbers is formed with a first term aa (the mayor's favorite number) and common difference rr. The sequence of bus numbers can be expressed as:
a,a+r,a+2r,a+3r, a, a + r, a + 2r, a + 3r, \ldots

2. We need to have a bus whose number equals the sum of indices of any given subset of mm stations. Each such subset can be represented by a binary number with mm bits set to 1.

3. If a bus needs to visit exactly the stations corresponding to mm specific powers of 2, its number would be the sum of these powers. For example, if a bus visits stations 11 (which is 202^0) and 44 (which is 222^2), the bus number would be 1+4=51 + 4 = 5.

### Ensuring Every Subset is Covered

The bus number can be any sum of the form:
i=0kbi2i \sum_{i=0}^{k} b_i \cdot 2^i
where each bib_i is either 0 or 1, indicating whether the bus visits the station at 2i2^i.

To ensure any combination of stations totaling mm stations is represented by a bus number in the sequence, we need:
- The sequence of bus numbers a+nra + nr to cover all such binary sums uniquely.

### Proving the Necessity of an Odd rr

To have every possible sum of mm distinct powers of 2 be a bus number, the arithmetic progression must span all such sums modulo 2. When rr is odd, rr adds or subtracts an odd number in successive terms, ensuring coverage of both odd and even sums.

### Conclusion

If rr is odd, the differences will respect the binary representation needs since every number in the sequence of bus numbers (given any starting number) can represent every possible subset by covering both parity possibilities. Therefore, all odd integers rr allow us to satisfy the requirement of having a bus visiting any subset of mm stations.

Thus, the set of all such positive integers rr for which this is always possible is:
all odd r \boxed{\text{all odd } r}

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