What is the sum of all real numbers for which the median of the numbers and is equal to the mean of those five numbers?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
The median is 6, x, or 8 depending on where x falls; set each equal to (35 + x)/5 and keep only solutions consistent with their own case.
Solution
The mean is . The median depends on where sits relative to and .
Case : the ordered list is or , so the median is . Then gives , which is indeed . Valid.
Case : the median is itself. Then gives , , which is not between and . Rejected.
Case : the median is . Then gives , which is not . Rejected.
The only solution is , so the sum of all solutions is .
The answer is .
Why this works
The median is a piecewise function of , so the equation "median equals mean" is really three linear equations, each valid only on its own interval. Solving each and then checking membership in the interval is the whole method; two of the three candidates fail that check. Always verify a casework solution against the assumption that generated it.
The trap
Adding all three candidate values (-5, 5 and 35/4) without checking that 5 and 35/4 violate the case that produced them.
Common mistakes
- Adding all three candidate values (-5, 5 and 35/4) without checking that 5 and 35/4 violate the case that produced them.
- Taking the median of the four given numbers () and ignoring that changes the ordering.
Techniques
Split into exhaustive cases and handle each