This program finds all the possible ways to add unique numbers to reach a given sum
The constraints are the number of elements used, the maximum value for each element, the sum to reach and of course each element must be unique.
Example: #Elements = 3 Max Value = 5 Sum = 7
1 + 2 + 4 and 0 + 2 +5 are valid while 2 + 2 +3 is not valid nor is 0 + 1 + 6