Maths Olympiad Prep

Library / /30 of 30

Combinatorics Difficulty 7.2 National olympiad, round 2 Prove it Ireland

A given list n1,n2,,n2011n_1, n_2, \dots, n_{2011} of positive integers has the property that nini+1n_i n_{i+1} is different from njnj+1n_j n_{j+1} whenever i,ji, j are distinct integers less than 20112011. Find the minimum number of distinct integers that must be in any such list.

Solution

Suppose a list L=(ni)i=1NL = (n_i)_{i=1}^N is made up only of numbers selected from the (possibly much shorter) list of distinct numbers (mi)i=1k(m_i)_{i=1}^k, and that the products nini+1n_i n_{i+1}, 1i20101 \le i \le 2010, are all distinct. We write down the indices of the numbers mim_i occurring in LL as another list MM also of length NN, e.g. if LL begins m3,m7,m1,m9,m7,m_3, m_7, m_1, m_9, m_7, \dots, then MM begins 3,7,1,9,7,3, 7, 1, 9, 7, \dots.
If ni=man_i = m_a and ni+1=mbn_{i+1} = m_b, the product nini+1n_i n_{i+1} is determined by the set {a,b}\{a, b\}. Hence, any two (not necessarily distinct) numbers a,ba, b from {1,2,,k}\{1, 2, \dots, k\} can appear as neighbours in the list MM at most once. As MM contains 20112011 elements, there must exist at least 20102010 different subsets of {1,2,,k}\{1, 2, \dots, k\} with one or two elements. Note that, by usual conventions of set theory, {a,a}={a}\{a, a\} = \{a\} contains only one element. The number of such subsets is equal to k(k+1)/2k(k+1)/2 and so we need to have k(k+1)/22010k(k+1)/2 \ge 2010, i.e. k63k \ge 63.
That k=63k=63 is indeed sufficient follows from the construction of a sequence MM given below. We will in fact construct for each odd number k3k \ge 3 a 'cycle' of numbers such that each subset of {1,2,,k}\{1, 2, \dots, k\} with one or two elements appears exactly once as a set of neighbours in the cycle. A 'cycle' of numbers is simply a list in which the first and last element coincide. Two such 'cycles' of length T+1T+1 are said to be equivalent iff we obtain the same result, up to rotation, if their numbers are cyclically written at the vertices of a regular TT-gon, whereby the first and last element of the list are written on the same vertex.
To prove the existence of such a cycle, we first form the set T\mathcal{T} of all subsets of {1,2,,k}\{1, 2, \dots, k\} with one or two elements. Note that each number appears k1k-1 times in a two-element subset and once in a singleton. We start the sequence with 1,2,3,,k1, 2, 3, \dots, k and remove from T\mathcal{T} the sets {1,2},{2,3},,{k1,k}\{1, 2\}, \{2, 3\}, \dots, \{k-1, k\} which appear as neighbours already. We repeatedly do now the following:
* If aa is the last element of our list and there is a set in T\mathcal{T} which contains aa, we pick such a set, remove it from T\mathcal{T} and append aa (if the set was a singleton) or the second element of this set (if it was a two-element set) to the list.
* Because k1k-1 is even, if T\mathcal{T} is not empty but does not contain a set which contains the last element of our list, then the last element of our list must coincide with the first element of our list, i.e. the list is a cycle. In this case, we replace it by an equivalent cycle which has an element as its first and last element which appears in one of the sets in T\mathcal{T}. This is possible because we started our list in such a way that it contains all numbers 1,,k1, \dots, k at least once. After replacing the cycle by an appropriate equivalent one, we continue as above appending elements to the list.
This process can be continued until all elements of T\mathcal{T} are used. The result is a list which contains all possible neighbour-subsets exactly once. If k=63k=63, the list will have length 6364/2+1=201763 \cdot 64/2 + 1 = 2017. By discarding the last 66 elements we obtain a list MM with 20112011 elements.
Let M=(μi)i=12011M = (\mu_i)_{i=1}^{2011} be this list and let mim_i be the ii-th prime number. Defining ni=mμin_i = m_{\mu_i} we obtain a list L=(ni)i=12011L = (n_i)_{i=1}^{2011} which satisfies the conditions of the problem.

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 and solution reproduced as published; topic and difficulty added by this site.