Sum of subsets with k elements having a total sum of r
This question is a mirror of the question Sum of subsets which I found interesting. The problem is like this:
Let , how many subsets with k elements that are having the sum of value r?
For instance, if n = 6, k = 3, r = 10:
The following sets: ...