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
There are 20100 numbers, so the median is the 10050th; the first n values occupy n(n+1)/2 slots, and 141*142/2 = 10011 < 10050 <= 10153.
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 .
Why this works
For a list built from blocks, locate the middle position, then find which block contains it using cumulative counts. Triangular numbers give the cumulative count in closed form, and tells you exactly where to check. Verify that both middle positions land in the same block before declaring the median an integer.
The trap
Taking the median of the distinct values 1 to 200 (100.5), or averaging the values 141 and 142 after misplacing the middle positions.
Common mistakes
- Taking the median of the distinct values 1 to 200 (100.5), or averaging the values 141 and 142 after misplacing the middle positions.
- Solving and rounding down to without checking that .
Techniques
Bound the quantity above/below or estimate to pin it down · Set up the equation/formula and compute; no special trick needed