For example, given four distinct numbers $5, 6, 7, 9$ We have $2^4-1$ sums, $5, 6, 7, 9, 11, 12, 14, 13, 15, 16, 18, 22, 20, 21, 27$ which are the sums from the numbers.
But if given five distinct numbers $5, 6, 7, 8, 9$, then we see $5 + 9 = 6 + 8$, hence the possible distinct sums of them cannot be easily counted by $2^5-1$.
Is it possible to easily count all the possible distinct sums from distinct numbers? Thanks!