Skip to main content

1996 AIME Problem 12

Problem 12 of 15HarderCombinatoricsProbability & Statistics

For each permutation a1,a_1, a2,a_2, a3,a_3, …,\ldots, a10a_{10} of the integers 1,1, 2,2, 3,3, …,\ldots, 10,10, form the sum ∣a1−a2∣+∣a3−a4∣+∣a5−a6∣+∣a7−a8∣+∣a9−a10∣.\begin{gathered}|a_1-a_2|+|a_3-a_4|\\+|a_5-a_6|+|a_7-a_8|\\+|a_9-a_{10}|.\end{gathered} The average value of all such sums can be written in the form pq,\frac{p}{q}, where pp and qq are relatively prime positive integers. Find p+q.p+q.

Your answer

Integer from 0 to 999
Show solution

Solution

Each paired difference has the same expected value as the difference of a uniformly selected unordered pair from 1,…,10.1,\ldots,10. Therefore E∣a1−a2∣=∑d=19d(10−d)(102)=10∑d=19d45−∑d=19d245=450−28545=113.\begin{aligned}\mathbb E|a_1-a_2|&=\frac{\sum_{d=1}^9d(10-d)}{\binom{10}{2}}\\&=\frac{10\sum_{d=1}^9d}{45}\\&\quad-\frac{\sum_{d=1}^9d^2}{45}\\&=\frac{450-285}{45}=\frac{11}{3}.\end{aligned} By linearity of expectation, the average of the five-term sum is 5⋅113=553.\frac{5\cdot11}{3}=\frac{55}{3}. Thus p+q=58.p+q=58.
AoPS wiki

Tagged: expected value · linearity of expectation · counting pairs

More practice