• retagged by
1,355 views
0 0 votes
How many integer solutions exist for the given equation $x+y+z=15$ subject to the constraint that $0\leq x,y,z\leq 10$?

I tried the brute force method and listed the possible solution sets for the above equation, given the variable constraints as follows :

$\begin{bmatrix} 2 &3 &10 \\ 2&4 &9 \\ 2&5 &8 \\ 3&6 &6 \\ 3&4 &8 \\ 3&5 &7 \\ 4&5 &6 \\ 4&7 &4 \\ 4&10 &1 \\ 4&11 &0 \\ 6&7 &2 \\ 6&8 &1 \\ 6&9 &0 \\ 5&9 &1 \\ 5&10 &0 \\ 7&8 &0 \end{bmatrix}$

Here, each row will denote the possible values for the three variables. I tried to eliminate any duplicate values, and listed only the unique combinations of integer values. Then, the number of possible solutions should be one of the permutations of the above values only, right? So, that should be 16 * 6 = 96 possible solutions. The answer given was 3666, derived using Generating functions. Please explain.

1 Answer

Best answer
1 1 vote
This problem can be reduced to balls in bins problem. $x$, $y$ and $z$ are 3 distinct bins and we have 15 identical balls to fill them. Now, the problem reduces to all the possible permutations of 15 + (3-1) (3-1 separations split 15 items to 3 bins) items, with 15 identical balls and another 2 identical separations. So,

$$\frac{17!}{15!2!} = 136.$$

Now, we have to eliminate the cases where $x,y,z > 10$.

So, let $x = 11$, now we have $y + z = 4$, which has 5 possible cases (calculated as above). Similarly for $y=11$ and $z=11$ we get 5 more cases each totaling 15 cases.

Similarly for $12, 13, 14, 15$ we get $3.4, 3.3,,3.2, 3.1$ cases totaling 15 + 12 + 9 + 6 + 3 = 45 possible cases.

So, our answer should be $136 - 45 = 91.$
• selected by
Position:
Show:

Related questions

51 51 votes
6 answers 6 answers
14.0k
14.0k views
Misbah Ghaya asked Nov 29, 2016
14,012 views
How many substrings (of all lengths inclusive) can be formed from a character string of length $n$? Assume all characters to be distinct, prove your answer.
43 43 votes
6 answers 6 answers
17.6k
17.6k views
Kathleen asked Sep 23, 2014
17,614 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above
51 51 votes
8 answers 8 answers
18.2k
18.2k views
Kathleen asked Sep 14, 2014
18,190 views
A multiset is an unordered collection of elements where elements may repeat any number of times. The size of a multiset is the number of elements in it, counting repetiti...
1 1 vote
1 answers 1 answer
5.5k
5.5k views
radha gogia asked Nov 11, 2018
5,549 views
In X+y+z<=12 , X,y,z>=1 How to find total no of integral solutions ?If you are introducing any dummy variable for solving , please do explain the logic behind this .