Let be permutation of numbers , where .
Find the maximum value of the sum
Problem 1216
Official solution
1. Understanding the Problem:
We need to find the maximum value of the sum
where is a permutation of the numbers .
2. Analyzing the Absolute Differences:
To maximize , we need to maximize each term . The maximum difference between any two numbers in the set is .
3. Constructing the Permutation:
Consider the permutation that alternates between the largest and smallest remaining numbers. For example, for , the permutation would be . This ensures that the differences are maximized.
4. General Pattern:
For a general , the permutation can be constructed as follows:
- Start with the smallest number, then the largest, then the second smallest, then the second largest, and so on.
- This can be written as .
5. Calculating the Sum:
Let's calculate for this permutation:
- For , the permutation is :
- For , the permutation is :
6. General Formula:
The sum for the optimal permutation is:
7. Conclusion:
The maximum value of is given by:
The final answer is