AMC 10 Step by Step

2019 AMC 10B Problem 13

P11-15~4 minPrint

What is the sum of all real numbers xx for which the median of the numbers 4,6,8,17,4,6,8,17, and xx is equal to the mean of those five numbers?

Log in to save your progress.
Show solution without answering

Key insight

The median is 6, x, or 8, depending on where x falls. Solve median = mean in each case, then keep only answers that really fall in that case.

Solution

The mean is easy to write down, but the median depends on where xx lands in the list. So split into cases.

The mean is
4+6+8+17+x5=35+x5.\frac{4 + 6 + 8 + 17 + x}{5} = \frac{35 + x}{5}.

The median is the middle (third) number once the five numbers are in order.

  1. xx is 66 or less. For example, with x=1x = 1 the list is 1,4,6,8,171, 4, 6, 8, 17. The middle number is 66. Set the mean equal to 66: 35+x=3035 + x = 30, so x=−5x = -5. Is −5-5 at most 66? Yes. Keep it.
  2. xx is between 66 and 88. For example, with x=7x = 7 the list is 4,6,7,8,174, 6, 7, 8, 17. The middle number is xx itself. Set 35+x5=x\frac{35 + x}{5} = x: 35+x=5x35 + x = 5x, so x=354=8.75x = \frac{35}{4} = 8.75. But 8.758.75 is not between 66 and 88. Throw it out.
  3. xx is 88 or more. For example, with x=10x = 10 the list is 4,6,8,10,174, 6, 8, 10, 17. The middle number is 88. Set the mean equal to 88: 35+x=4035 + x = 40, so x=5x = 5. But 55 is not 88 or more. Throw it out.

Check x=−5x = -5: the list −5,4,6,8,17-5, 4, 6, 8, 17 has median 66 and mean 305=6\frac{30}{5} = 6. They match.

Only one value works, so the sum of all such xx is −5-5.

The answer is (A) −5\boxed{\textbf{(A)}\ -5}.

Why this works

When the rule for something (here, which number is the median) changes depending on xx, you have to split into cases. Each case gives an equation, but its answer only counts if it actually lands in that case. Two of the three answers here fail that check, and the wrong choices 55 and 354\frac{35}{4} are exactly those failed answers.

Concise solution

A shorter write-up, the way contest solutions are usually written. It may take a different route from the solution above.

The mean is 4+6+8+17+x5=35+x5\frac{4 + 6 + 8 + 17 + x}{5} = \frac{35 + x}{5}. The median depends on where xx sits relative to 66 and 88.

Case x≤6x \le 6: the ordered list is x,4,6,8,17x, 4, 6, 8, 17 or 4,x,6,8,174, x, 6, 8, 17, so the median is 66. Then 35+x5=6\frac{35 + x}{5} = 6 gives x=−5x = -5, which is indeed ≤6\le 6. Valid.

Case 6<x<86 < x < 8: the median is xx itself. Then 35+x5=x\frac{35 + x}{5} = x gives 35=4x35 = 4x, x=354=8.75x = \frac{35}{4} = 8.75, which is not between 66 and 88. Rejected.

Case x≥8x \ge 8: the median is 88. Then 35+x5=8\frac{35 + x}{5} = 8 gives x=5x = 5, which is not ≥8\ge 8. Rejected.

The only solution is x=−5x = -5, so the sum of all solutions is −5-5.

The answer is (A) −5\boxed{\textbf{(A)}\ -5}.

Review in the AoPS books

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.