Let . There are people standing in a circle, each holding a different painting in an art conference. Each person has their own fixed preference order of the paintings, which can be different from person to person. A trade of paintings between two adjacent people can happen if and only if both people are getting a painting they prefer more. What is the maximum number of trades that can happen?
(Proposed by Nyamdavaa Amar)
Solution
Answer: .
Consider the position of the painting for each person in their preference order, and let denote the sum of these positions. The maximum of is and the minimum of is . For each trade, is reduced at least by 2. Hence the maximum number of trades is .
Now we show that trades can happen. We number the paintings from 1 to in clockwise direction. Then we let odd-numbered paintings go clockwise and even-numbered paintings go counter-clockwise. After trades, we can have all odd-numbered paintings shifted one position in clockwise direction and all even-numbered paintings shifted one position in counter-clockwise direction. Repeating this times will return the paintings to the initial position. Repeating times gives trades. This determines the preference order for each person.