Given a set of positive integers of size n, how to compute the number of r-combinations of it s.t. the sum of the integers in the combination less than k? Precisely, I have a set $S\subseteq \Bbb N^+$, how to find the number of r-subsets of S s.t. $x_1+x_2+...+x_r\le k$ ? or how to do it with a simplified version, $S=\{1,2,3,...,n\}$?
Tell me more
×
Mathematics Stack Exchange is a question and answer site for
people studying math at any level and professionals in related fields. It's 100% free, no registration required.
|