Maths Olympiad Prep

Library / /23 of 24

, 2016

Combinatorics Difficulty 7.7 National olympiad, round 2 Prove it Argentina

Let a1,a2,...,a100a_1, a_2, ..., a_{100} be a permutation of 1,2,...,1001, 2, ..., 100. For each triple {ai,ai+1,ai+2}\{a_i, a_{i+1}, a_{i+2}\} of consecutive numbers, 1i981 \le i \le 98, the middle number in the triple is marked. For instance if ai=7,ai+1=99,ai+2=22a_i = 7, a_{i+1} = 99, a_{i+2} = 22 then ai+2=22a_{i+2} = 22 is marked. Let SS be the sum of all marked numbers. Find the minimum value of SS. (Each marked number enters the sum SS exactly once, although it may be marked more than once.)

Solution

The desired minimum is 3334=112233 \cdot 34 = 1122. More generally, for n=3k+1n = 3k + 1 instead of 100100 the answer is Smin=2(1++k)=k(k+1)S_{\min} = 2(1 + \dots + k) = k(k+1). For clarity we state separately a fact used later in a proof of the lower bound S(α)2(1++k)S(\alpha) \ge 2(1 + \dots + k) for each permutation α\alpha of 1,2,...,3k+11, 2, ..., 3k + 1.

Claim. If 2k2k distinct natural numbers are divided into kk pairs uj,vju_j, v_j with uj<vju_j < v_j, j=1,,kj = 1, \dots, k, then v1++vk2(1++k)v_1 + \dots + v_k \ge 2(1 + \dots + k).

The justification is by induction on kk, with obvious base case k=1k=1.

For the inductive step k1kk-1 \to k choose the labeling so that vk:=maxj=1kvjv_k := \max_{j=1}^k v_j. Ignore uku_k and vkv_k for the time being, and apply the inductive hypothesis to the remaining 2k22k-2 numbers. This gives v1++vk12(1++(k1))v_1 + \dots + v_{k-1} \ge 2(1 + \dots + (k-1)). So it is enough to prove vk2kv_k \ge 2k in order to complete the inductive step. We have vk>vjv_k > v_j for all j=1,,k1j = 1, \dots, k-1 by vk=maxj=1kvjv_k = \max_{j=1}^k v_j. In addition observe that vk>ujv_k > u_j for all j=1,,kj = 1, \dots, k. This holds for j=kj=k by hypothesis. Suppose that vk<ujv_k < u_j for some j=1,,k1j=1, \dots, k-1. Then uj<vju_j < v_j implies vk<vjv_k < v_j, which contradicts the maximum choice of vkv_k. In summary there are 2k12k-1 distinct natural numbers smaller than vkv_k, namely u1,,uk,v1,,vk1u_1, \dots, u_k, v_1, \dots, v_{k-1}. Hence vk2kv_k \ge 2k, completing the induction.

Now let α=(a1,a2,...,a3k+1)\alpha = (a_1, a_2, ..., a_{3k+1}) be any permutation of 1,2,...,3k+11, 2, ..., 3k + 1. Divide a1,a2,...,a3ka_1, a_2, ..., a_{3k} into kk triples Tj={a3j2,a3j1,a3j},j=1,,kT_j = \{a_{3j-2}, a_{3j-1}, a_{3j}\}, j = 1, \dots, k. Let uju_j and vjv_j be respectively the smaller number and the middle number in TjT_j. The 2k2k numbers uj,vj,j=1,,ku_j, v_j, j = 1, \dots, k, are distinct. Then the claim above gives v1++vk2(1++k)v_1 + \dots + v_k \ge 2(1 + \dots + k). Since v1,,vkv_1, \dots, v_k are marked numbers (in general there are more of them), the sum S(α)S(\alpha) of all marked number in α\alpha also satisfies S(α)2(1++k)S(\alpha) \ge 2(1 + \dots + k).

The equality S(α)=2(1++k)S(\alpha) = 2(1 + \dots + k) is attained for the following permutation of 1,2,...,3k+11, 2, ..., 3k + 1: 3k+1,1,2,2k+1,4,3,2k+2,6,5,2k+3,...,2k2,2k3,3k1,2k,2k1,3k3k + 1, 1, 2, 2k + 1, 4, 3, 2k + 2, 6, 5, 2k + 3, ..., 2k - 2, 2k - 3, 3k - 1, 2k, 2k - 1, 3k.

The marked numbers are precisely 2,4,...,2k2, 4, ..., 2k, hence S(α)=2(1++k)S(\alpha) = 2(1 + \dots + k). This completes the proof of Smin=2(1++k)=k(k+1)S_{\min} = 2(1 + \dots + k) = k(k+1).

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.