Number of Distinct Averages
Sort the values and repeatedly pair the smallest with the largest; a set of pair sums counts the distinct averages.
Sort the values and repeatedly pair the smallest with the largest; a set of pair sums counts the distinct averages.