# The mean, unique mode, median and range of 21 positive integers is 21. What is thelargest value that can be in this sequence? Also find such a sequence

*print*Print*list*Cite

21 is contained in the list, since it is the unique mode. Thus, we can't have the largest element be greater than 42, because then the range would be larger than 42-21=21.

So, we try to find a set with 42 as the largest element. If 42 is the largest element, then 21 is the smallest element (to keep the range at 21). We calculate the smallest possible mean: twenty 21s and one 42. The mean of this set is 22. Thus, even if we take the smallest possible set, the mean is still too big.

So, the largest element must be less than 42. So we try to find a set that has 41 as its largest element. If 41 is the largest element, then 20 must be the smallest, to keep the range at 21. Again, we calculate the smallest possible mean:

If we had eleven or more 20s in our list, then 20 would be the median, which isn't the case. If we had ten 20s, ten 21s, and 41, then 21 would not be the unique mode. Thus, the smallest possible mean is given by nine 20s, eleven 21s, and 41, in which case the mean is 21.52, so this can't happen.

So now we try to find a set with the largest element 40.

And it turns out there is such a set:**nine 19s, one 20, ten 21s, and 40**

the mean, median, range, and unique mode is 21