Counting Combinations with Restricted Summation using Generating Functions

  • Thread starter Thread starter FAhmad
  • Start date Start date
  • Tags Tags
    Binomial
FAhmad
Messages
1
Reaction score
0
If we have numbers 1,2,3,4,5,6,7,8,9,10,11.

We want to pick 5 numbers out of that, but there is a restriction - the summation of the 5 picked numbers must be 21 or less.

How many different combinations can we get?

The answer is 24 but I would like to know how to work it out (besides the impractical way of listing down all the possibilities in this case there are 462 different combinations, and testing one by one so that it is 21 or less)
 
Physics news on Phys.org
You can use generating functions. Just count all the possibilities with an unrestricted number of draws and unrestricted summation with a weight of x^(#numbers drawn) y^(value of the summation of numbers).
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...

Similar threads

Replies
2
Views
2K
Replies
4
Views
5K
Replies
7
Views
2K
Replies
2
Views
2K
Replies
29
Views
7K
Replies
5
Views
2K
Replies
3
Views
1K
Back
Top