reopened by
793 views
3 votes
3 votes

Following is the given solution in the solution manual:

I understood how we got x1 + x2 + x3 + x4 + x5 = 5, I understood too how we got x1+x2+x3+x4+x5 = 1, when x1>=4.

but I am unable to understand the highlighted part. how did we get x1 + x2 + x3 + x4 + x5 = 2. please explain.

PS: i solved this question using generating functions and i am getting the same answer as 106.

reopened by

1 Answer

Best answer
2 votes
2 votes
We have $x_1 + x_2 + x_3 + x_4 + x_5 = 21 (0\leq x_1\leq 3,1\leq x_2<4,x_3\geq 15)$. Note that $x_2$ is strictly less than 4. Hence to help us solve the equation, we modify it by subtracting the lower bounds of the constraints from the total sum i.e 21. By doing that, there is also a modification to the upper bounds due to the fact that $x_2$ and $x_3$ are already assigned some value i.e 1 and 15 respectively.

We then have $x_1 + x_2' + x_3' + x_4 + x_5 = 5 (0\leq x_1\leq 3,0\leq x_2'\leq 2,x_3'\geq 0)$. The number of solutions for this equation without considering upper bounds is $\binom{5+5-1}{5} = \binom{9}{5} = 126$. Now we can subtract the #solutions for $x_1\geq4$ and $x_2'\geq3$. Both these conditions cannot hold simultaneously since the sum should be 5 and thus we needn't consider the intersection of the cases. We then would obtain $x_1 + x_2' + x_3' + x_4 + x_5 = 1$ and $x_1 + x_2' + x_3' + x_4 + x_5 = 2$ giving us 5 and 15 as #solutions respectively. (P.S: The second highlighted portion arises from solving for  $x_2'\geq3$). Subtracting these figures from 126 would fetch us 106.
selected

Related questions

5 votes
5 votes
5 answers
1
Nirmal Gaur asked Apr 14, 2017
10,002 views
How many solutions are there to the equationx1 + x2 + x3 + x4 + x5 = 21,where xi , i = 1, 2, 3, 4, 5, is a nonnegative integer such that: 0$\leq$ x1$\leq$10 ?
2 votes
2 votes
2 answers
2
Abhinavg asked Mar 22, 2018
4,054 views
How many strings with seven or more characters can be formed from the letters of the word $\text{EVERGREEN}$ ?
2 votes
2 votes
2 answers
3
Manu Thakur asked Oct 11, 2017
824 views
Question How many different strings of length 2 can be made from the letters in 'ORONO'?I am getting 7 strings as follows: OO, ON, OR, NO, RO, RN, NRbut given answer is 6...