Maths Olympiad Prep

Library / /1290 of 1394

, 2023

Combinatorics Difficulty 6.0 AIME, harder Prove it United States

Problem:

The spikiness of a sequence a1,a2,,ana_{1}, a_{2}, \ldots, a_{n} of at least two real numbers is the sum i=1n1ai+1ai\sum_{i=1}^{n-1}\left|a_{i+1}-a_{i}\right|. Suppose x1,x2,,x9x_{1}, x_{2}, \ldots, x_{9} are chosen uniformly and randomly from the interval [0,1][0,1]. Let MM be the largest possible value of the spikiness of a permutation of x1,x2,,x9x_{1}, x_{2}, \ldots, x_{9}. Compute the expected value of MM.
Proposed by: Gabriel Wu
Answer: 7920\quad \frac{79}{20}

Solution

Solution:

Our job is to arrange the nine numbers in a way that maximizes the spikiness. Let an element be a peak if it is higher than its neighbor(s) and a valley if it is lower than its neighbor(s). It is not hard to show that an optimal arrangement has every element either a peak or a valley (if you have some number that is neither, just move it to the end to increase spikiness). Since 99 is odd, there are two possibilities: the end points are either both peaks or both valleys.

Sort the numbers from least to greatest: x1,,x9x_{1}, \ldots, x_{9}. If we arrange them in such a way that it starts and ends with peaks, the factor of xix_{i} added to the final result will be [2,2,2,2,1,1,2,2,2][-2,-2,-2,-2,1,1,2,2,2], respectively. If we choose the other way (starting and ending with valleys), we get [2,2,2,1,1,2,2,2,2][-2,-2,-2,-1,-1,2,2,2,2]. Notice that both cases have a base value of [2,2,2,1,0,1,2,2,2][-2,-2,-2,-1,0,1,2,2,2], but then we add on max(x6x5,x5x4)\max \left(x_{6}-x_{5}, x_{5}-x_{4}\right).

Since the expected value of xix_{i} is i10\frac{i}{10}, our answer is 210(1+2+3)410+610+210(7+8+9)+E(max(x6x5,x5x4))-\frac{2}{10}(1+2+3)-\frac{4}{10}+\frac{6}{10}+\frac{2}{10}(7+8+9)+\mathbb{E}\left(\max \left(x_{6}-x_{5}, x_{5}-x_{4}\right)\right). This last term actually has value 34E(x6x4)=34210\frac{3}{4} \mathbb{E}\left(x_{6}-x_{4}\right)=\frac{3}{4} \cdot \frac{2}{10}. This is because if we fix all values except x5x_{5}, then x5x_{5} is uniformly distributed in [x4,x6]\left[x_{4}, x_{6}\right]. Geometric probability tells us that the distance from x5x_{5} to its farthest neighbor is 34\frac{3}{4} to total distance between its two neighbors (x6x4)\left(x_{6}-x_{4}\right). We add this all up to get 7920\frac{79}{20}.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.