Question #36977

How many solutions are there to the equation
x1+x2+x3+x4+x5=21,
where xi, i=1,2,3,4,5, is a nonnegative integer such that
a)x1>=1?
b)xi>=2, for i=1,2,3,4,5?
c)0<=x1<=10?
d)0<=x1<=3, 1<=x2<4, and x3>=15?

Expert's answer

Answer on question 36977 – Math – Discrete Mathematics

How many solutions are there to the equation x1+x2+x3+x4+x5=21x1 + x2 + x3 + x4 + x5 = 21, where xi,i=1,2,3,4,5xi, i = 1,2,3,4,5, is a nonnegative integer such that

a) x11x1 \geq 1?

b) xi=2,fori=1,2,3,4,5?x_{i}\geq = 2,for i = 1,2,3,4,5?

c) 0x1100 \leq x1 \leq 10?

d) 0x13,1x2<40 \leq x1 \leq 3, 1 \leq x2 < 4, and x315x3 \geq 15?

Solution

a) Let y1=x11,y2=x2,y3=x3,y4=x4,y5=x5y_{1} = x_{1} - 1, y_{2} = x_{2}, y_{3} = x_{3}, y_{4} = x_{4}, y_{5} = x_{5}. Substitute these into our equation


y1+y2+y3+y4+y5=20y_{1} + y_{2} + y_{3} + y_{4} + y_{5} = 20


And yi0y_{i}\geq 0 for i=1,2,3,4,5i = 1,2,3,4,5.

There is a 1-1 correspondence between the solutions and reordering of 20 ones and 4 zeros (y1y_{1} is the number of ones before the first zero, y2y_{2} the number of ones between the first and the second zero, and so on).

Hence the answer is


C20+44=C244=10626.C_{20+4}^{4} = C_{24}^{4} = 10626.


b) Let y1=x12,y2=x22,y3=x32,y4=x42,y5=x52y_{1} = x_{1} - 2, y_{2} = x_{2} - 2, y_{3} = x_{3} - 2, y_{4} = x_{4} - 2, y_{5} = x_{5} - 2. Substitute these into our equation


y1+y2+y3+y4+y5=2110=11y_{1} + y_{2} + y_{3} + y_{4} + y_{5} = 21 - 10 = 11


Similarly to the previous case we get


C11+44=C154=1365.C_{11+4}^{4} = C_{15}^{4} = 1365.


c) Using the sum rule, the number of solutions with 0x1100 \leq x1 \leq 10 added to the number of solutions with x111x_{1} \geq 11 gives all non-negative integer solutions. Thus the number of solutions with 0x1100 \leq x1 \leq 10 is


C254C144=126501001=11649.C_{25}^{4} - C_{14}^{4} = 12650 - 1001 = 11649.


d) Let y1=x1,y2=x21,y3=x315,y4=x4,y5=x5y_{1} = x_{1}, y_{2} = x_{2} - 1, y_{3} = x_{3} - 15, y_{4} = x_{4}, y_{5} = x_{5}. Substitute these into our equation


y1+y2+y3+y4+y5=21115=5,y_{1} + y_{2} + y_{3} + y_{4} + y_{5} = 21 - 1 - 15 = 5,


where y13,y22,yi0,i=3,4,5y_{1} \leq 3, y_{2} \leq 2, y_{i} \geq 0, i = 3, 4, 5. Similarly to the previous case we get


C94C64C74=76.C_{9}^{4} - C_{6}^{4} - C_{7}^{4} = 76.


Answer: a) 10626; b) 1365; c) 11649; d) 76.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS