Philosophy of adding extra term in combinatorics question If x 1 </msub> +

Leah Pope

Leah Pope

Answered question

2022-06-30

Philosophy of adding extra term in combinatorics question
If x 1 + x 2 + x 3 + x 4 20 where x 1 , x 2 , x 3 , x 4 are non negative integers , then how many possible outcome are there ?
It is basic counting problem, we solve it by adding an extra non-negative integer such that x 1 + x 2 + x 3 + x 4 + x 5 = 20, and then use star and bars . Hence the answer is ( 20 + 5 1 20 ) .
However , there is something that stuck in my mind such that why are we adding only one extra variable x 5 , to be clearer , why dont we add more than one extra variable. For example , why did not i find the solution of x 1 + x 2 + x 3 + x 4 + x 5 + x 6 = 20 where the extra terms x 5 and x 6 are non-negative, too. Briefly, why did we restrict ourselved with only one extra variable? Can you enlighten me ?

Answer & Explanation

America Barrera

America Barrera

Beginner2022-07-01Added 23 answers

Step 1
Stars and bars work for i = 1 k x i = n , x i { 0 , 1 , 2 } because we only need k 1 bars to separate k groups of x. Hence, we consider n stars and k 1 bars to obtain ( n + k 1 n ) ways to place the stars, while the bars fill the rest of the positions.
x 1 + x 2 + x 3 + x 4 = m 20 is another way of saying place the 4th bar in the m+4th position. We need the 4th bar because there is at least one group remaining.
Step 2
For example x 1 + x 2 + x 3 + x 4 = 12 20 means in the first 16 positions we placed 12 stars and 4 bars. It happens that if we have simply have 5 groups, the remaining stars are forced into place, so the set of ( x 1 , x 2 , x 3 , x 4 ) forms an one-to-one and onto relation with the set of solutions of x 1 + x 2 + x 3 + x 4 + x 5 = 20. This means we can use stars and bars for the second problem as the answer would be the same as the first. If additional groups and bars (or variables) are introduced, we get instead an one-to-many relationship so we are unable to immediately take advantage of stars and bars.
Taniyah Estrada

Taniyah Estrada

Beginner2022-07-02Added 5 answers

Step 1
Because we want to consider unique cases. Using more than one variable overcounts. For example, if you took x 5 and x 6 such that x 1 + x 2 + x 3 + x 4 + x 5 + x 6 = 20.
Say we have x 1 = 1, x 2 = 5, x 3 = 7, x 4 = 2. Then, this is a solution to our original inequality. With our new equation we formed, this would mean that in this one case, we are actually counting the same case six times, as stars and bars would count ( x 5 , x 6 ) to be (0,5), (1,4), (2,3), (3,2), (4,1) and (5,0). That's why we take one variable so we don't count duplicates.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?