2021 AMC 10A Problem 16
In the following list of numbers, the integer appears times in the list for . What is the median of the numbers in this list?
Show solution without answering
Key insight
The list has 20100 numbers, so the middle is at position 10050. The numbers 1 through n fill the first n(n+1)/2 spots; find which block holds that position.
Solution
- Count the entries: . That is even, so the median is the average of the th and st entries. The list is already in order.
- Look at how the first few numbers fill positions:
| number | positions it fills | last position |
|---|---|---|
| to | ||
| to | ||
| to |
The last position filled by is .
3. We want the first whose last position reaches , so should be about . Since is close to , try near the square root of . We have and , so check and .
4. , so the numbers to end at position .
5. , so the number fills positions through .
6. Both and are in that stretch, so both middle entries are . The median is .
The answer is .
Why this works
For a list made of blocks of repeated numbers, first find the middle position, then find which block contains it by counting how many positions the earlier blocks use up. Here the running count is a triangular number, , and a square root tells you where to look. Always check that both middle positions fall in the same block.
Concise solution
A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.
The list has entries, an even number, so the median is the average of the th and st entries (the list is already sorted).
The values together fill the first positions. We want the smallest with , i.e. . Since suggests :
Positions through all hold the value , which includes both middle positions.
The median is , so the answer is .
Review in the AoPS books
- Prealgebra, Chapter 13: Data and Statistics
- Introduction to Algebra, Chapter 21: Sequences & Series (§21.1, §21.2, §21.3, §21.4)
- Intermediate Algebra, Chapter 17: More Sequences and Series (§17.1, §17.2)
Similar problems
Problem © Mathematical Association of America (MAA), American Mathematics Competitions. Reproduced for non-commercial educational use. Solution and commentary are original to this site.