Maths Olympiad Prep

Track / Stage 5 / 158 of 400 #758 of 1964

Problem 758

AIME late
Combinatorics Difficulty 5.4 Find the answer

37th BMO 2001 Problem 4 n dwarfs with heights 1, 2, 3, ... , n stand in a circle. S is the sum of the (non-negative) differences between each adjacent pair of dwarfs. What are the maximum and minimum possible values of S? Solution

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

: min 2n - 2, max [n 2 /2]. The minimum is obviously 2(n-1). The difference between 1 and n is n-1 and the sum of the signed differences as we go from n to 1 either way round the circle must be n-1. The sum of the unsigned differences must be at least as large, so S ≥ 2(n-1). This is achieved by the order 1, 2, 3, ... , n. The maximum is almost obvious. If the numbers are a 1 , a 2 , ... , a n . Then each difference is a i+1 - a i or - a i+1 + a i . So the total of all the differences is k 1 a 1 + k 2 a 2 + ... + k n a n , where each k i is -2, 0 or 2 and their sum is 0. So permuting back to 1, 2, ... , n the sum is h 1 + 2h 2 + 3h 3 + ... + nh n , where each h i is 0 or ±2 and the sum of the h i is 0. If n = 2m, this is maximised by taking h 1 = h 2 = ... = h m = -2 and h m+1 = ... = h 2m = 2, giving a sum of 2m 2 . If n = 2m+1, it is maximised by taking h 1 = ... = h m = -2, h m+1 = 0, h m+2 = ... = h 2m+1 = 2, giving a sum of 2m(m+1). Checking that this can be achieved, we take: 1, 2m, 2, 2m-1, 3, 2m-2, ... , m-1, m+2, m, m+1 in the even case and 1, 2m+1, 2, 2m-1, 3, 2m-3, ... , m-1, m+3, m, m+2, m+1 in the odd case. 37th BMO 2001 © John Scholes [email protected] 18 Jul 2002

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.