1996 AIME Problem 12

Attempt Problem 12 of the 1996 AIME below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1996 AIME solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

12.

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.
Answer: 58
Concepts:expected valuelinearity of expectationcounting pairs
Small hint:
Each of the five absolute differences has the same average
Big hint:
For a random unordered pair, difference dd occurs 10−d10-d times
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.
LIVE by Po-Shen Loh
Programs

LIVE Classes

Self-Paced Classes

Stars

Scholarship

About Us

Who Is Po-Shen Loh?

Email Contact

Newsletter

Jobs

Become a Star

For a more Thought Full world.

© 2026 Expii, Inc.