Ayman writes down the numbers 1 through 10 in a sequence in some order, writes down the nine (positive) differences between adjacent numbers and computes the sum of these differences. The result is called the dynamic of the sequence. For example, the dynamic of the sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 is 9, and the dynamic of the sequence 2, 1, 3, 10, 4, 5, 9, 6, 8, 7 is 1 + 2 + 7 + 6 + 1 + 4 + 3 + 2 + 1 = 27. What is the greatest dynamic that such a sequence with the numbers 1 through 10 can have?
my thinking:
To make every single difference as large as possible, you want each step to jump between the smallest and largest unused numbers. A natural way to do that is to alternate low–high–low–high: 1,10,2,9,3,8,4,7,5,6 but i don't know how to prove this strictly