OlympiadSuperchallengeOlympiad Number Theory
Olympiad Number Theory · Superchallenge problem
By the rearrangement inequality, the maximum of over all orderings of and is achieved by pairing them in the same order, and the minimum by opposite orders. Compute the maximum minus the minimum.