Let be an arbitrary arrangement of numbers on a circle. Find
where and the extrema are taken over all possible arrangements of .
India — Team Selection Test, 2007
Solution
Minimum: Consider and on the circle. They divide the circle into two arcs. The sum of the numbers on either of the arc is at least . Suppose for example the numbers appear on one of the arcs between and , in that order. Then the sum of absolute differences of adjacent numbers on this arc is
Similarly, the least sum of absolute differences on the other arc is also . Hence we see that
This is achieved by the permutation , where for .
Maximum: We have
Each of the numbers appear in the right side sum twice. Hence to get a maximum sum we should have positive sign to larger numbers in both occurrences and smaller number should go with negative sign. Thus should get positive signs and should get negative signs. This happens when:
for even , the arrangement is ;
for odd , the arrangement is .
The corresponding sums are: