In the following list of numbers, the integer appears times in the list for . What is the median of the numbers in this list?
- A)
- B)
- C)
- D)
- E)
Answer
C
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.
The trap
Taking the middle of 1 to 200, which is 100.5, as if each number appeared once. Big numbers appear many more times, which pulls the median far up.
Concise solution
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)
Techniques
Bound the quantity above/below or estimate to pin it down · Set up the equation/formula and compute; no special trick needed