Given a set of twenty numbers, there are a maximum of possible sums. (There may be several equal sums, but that is the number of different sums.) Given the power of today’s computers, it should be possible to actually check out each possible sum. But there is no mathematical formula to do this for an arbitrary set.