A data set consists of 7 distinct positive integers. The mean of the data set is , the median is , and the range is . The 3 values greater than the median are consecutive integers. What is the greatest possible value in the data set?
For a hard mean-median-range question involving distinct integers, arrange the data from least to greatest and use a variable for an extreme value. Convert the mean into a total sum, then use the ordering and distinctness conditions to create a minimum or maximum possible sum for the unknown values. Finally, test whether the strongest bound can actually occur, since a bound alone does not guarantee that a valid data set exists.
Hints
Order the data values
Let the greatest value be . Use the range to write the least value in terms of .
Use the consecutive-values condition
The three values above the median must be the three greatest values. Express all three using .
Compare two expressions for the middle values
Use the mean to find the required sum of the two values between the minimum and the median. Then compare that sum with the smallest possible sum those two distinct integers could have.
Desmos Guide
Use algebra first
Algebra is the fastest method because the conditions require reasoning about ordered distinct integers. Desmos can verify the bound once the expressions are set up.
Graph the two sum expressions
Enter and . Here, represents the greatest value, the first expression is the required sum of the two unknown middle values, and the second is their smallest possible sum. The first graph must be at or above the second graph.
Restrict to possible integers and verify
The range and positivity require . The graphs intersect between and , so inspect the whole-number candidates allowed by both conditions. To verify the largest candidate, enter , then evaluate and .
Step-by-step Explanation
Represent the ordered values
Let be the greatest value. Because the range is , the least value is . The three values greater than the median are consecutive, so they are , , and . Let the two remaining values be and , so the data set has the form .
Use the mean to find the required sum
A mean of for values means that the sum is . Therefore, , which simplifies to .
Bound the greatest value
The least value, , must be positive, so . Also, since all values are distinct positive integers, the smallest possible values of and are and . Thus, . Combining this with gives , so . Because is an integer, .
Confirm that the upper bound is possible
The data set has sum , so its mean is . Its median is , its range is , and its three values greater than are consecutive. Therefore, the greatest possible value is .