Question #69951

ind the number of integer solutions to the equation x1+x2+x3=40 where, 6<=x1>=15, 5<=x2>=20 and 10<=x3>=25

Expert's answer

Answer on Question #69951 – Math – Discrete Mathematics

Question

Find the number of integer solutions to the equation x1+x2+x3=40x_{1} + x_{2} + x_{3} = 40 where


6x115,5x220and10x325.6 \leq x _ {1} \leq 15, \quad 5 \leq x _ {2} \leq 20 \quad \text{and} \quad 10 \leq x _ {3} \leq 25.

Solution

Method 1

Let x1,x2,,xmx_{1}, x_{2}, \ldots, x_{m} be integers. Then the number of solutions to the equation


x1+x2++xm=nx _ {1} + x _ {2} + \cdots + x _ {m} = n


subject to the conditions a1x1b1a_1 \leq x_1 \leq b_1, a2x2b2a_2 \leq x_2 \leq b_2, ..., amxmbma_m \leq x_m \leq b_m

is equal to the coefficient of xnx^n in


(xa1+xa1+1++xb1)(xa2+xa2+1++xb2)(xam+xam+1++xbm).(x ^ {a _ {1}} + x ^ {a _ {1} + 1} + \cdots + x ^ {b _ {1}}) \cdot (x ^ {a _ {2}} + x ^ {a _ {2} + 1} + \cdots + x ^ {b _ {2}}) \cdots (x ^ {a _ {m}} + x ^ {a _ {m} + 1} + \cdots + x ^ {b _ {m}}).


(see http://www.careerbless.com/aptitude/qa/permutations_combinations_imp8.php)

Applying this theorem to this problem one gets that the number of solutions to the equation


x1+x2+x3=40x _ {1} + x _ {2} + x _ {3} = 40


subject to conditions


6=a1x1b1=15,5=a2x2b2=20,,10=a3x3b3=256 = a _ {1} \leq x _ {1} \leq b _ {1} = 15, \quad 5 = a _ {2} \leq x _ {2} \leq b _ {2} = 20, \quad \ldots, \quad 10 = a _ {3} \leq x _ {3} \leq b _ {3} = 25


is equal to the coefficient of x40x^{40} in


(x6+x7+x8+x9+x10+x11+x12+x13+x14+x15).\left(x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15}\right).(x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20).\left(x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15} + x ^ {16} + x ^ {17} + x ^ {18} + x ^ {19} + x ^ {20}\right).(x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+x21+x22+x23+x24+x25)==x6x5x10(1+x+x2+x3+x4+x5+x6+x7+x8+x9).\begin{array}{l} \left(x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15} + x ^ {16} + x ^ {17} + x ^ {18} + x ^ {19} + x ^ {20} + x ^ {21} + x ^ {22} + x ^ {23} + x ^ {24} \right. \\ \left. + x ^ {25}\right) = \\ = x ^ {6} x ^ {5} x ^ {10} \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9}\right). \end{array}(1+x+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15).\cdot \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15}\right).(1+x+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15)==x21(1+x+x2+x3+x4+x5+x6+x7+x8+x9).\begin{array}{l} \cdot \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15}\right) = \\ = x ^ {21} \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9}\right). \end{array}(1+x+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15).\cdot \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15}\right).(1+x+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15)\cdot \left(1 + x + x ^ {2} + x ^ {3} + x ^ {4} + x ^ {5} + x ^ {6} + x ^ {7} + x ^ {8} + x ^ {9} + x ^ {10} + x ^ {11} + x ^ {12} + x ^ {13} + x ^ {14} + x ^ {15}\right)


Thus, the number of integer solutions is 135.

Method 2

From the equation x1+x2+x3=40x_{1} + x_{2} + x_{3} = 40 we can express one of variables in terms of others: x3=40(x1+x2)x_{3} = 40 - (x_{1} + x_{2}). Thus, 1040(x1+x2)2510 \leq 40 - (x_{1} + x_{2}) \leq 25, or, 30(x1+x2)15-30 \leq -(x_{1} + x_{2}) \leq -15, or 15x1+x23015 \leq x_{1} + x_{2} \leq 30.

For each integer from 15 to 30 let's count the number of pairs of integers (x1,x2)(x_{1}, x_{2}) such that 6x1156 \leq x_{1} \leq 15, 5x2205 \leq x_{2} \leq 20.

Let x1+x2=nx_{1} + x_{2} = n, where 15n3015 \leq n \leq 30. The minimal value of x1x_{1} (even less than 6) for which there exists x2x_{2} such that x1+x2=nx_{1} + x_{2} = n is n20n - 20, i.e. nn minus upper limit of x2x_{2}. Taking into account the lower limit of x1x_{1} being 6, the minimal value of x1x_{1} really is max{(n20),6}\max \{(n - 20), 6\}. Similarly, the maximal value of x2x_{2} (even greater than 15) for which there exists appropriate x2x_{2} is n5n - 5, i.e. nn minus lower limit of x2x_{2}. Taking into account the upper limit of x1x_{1} being 15, the maximal value of x1x_{1} really is min{(n5),15}\min \{(n - 5), 15\}. Then the number of pairs of integers (x1,x2)(x_{1}, x_{2}) such that 6x1156 \leq x_{1} \leq 15, 5x2205 \leq x_{2} \leq 20 and x1+x2=nx_{1} + x_{2} = n is the number of integers between an=max{(n20),6}a_{n} = \max \{(n - 20), 6\} and bn=min{(n5),15}b_{n} = \min \{(n - 5), 15\}, i.e. (bnan+1)(b_{n} - a_{n} + 1). In the table below columns correspond to value of nn while blue cells in each column correspond to valid values of x1x_{1}:



For 15n2615 \leq n \leq 26, an=6a_{n} = 6 and for the rest, 27n3027 \leq n \leq 30, an=n20a_{n} = n - 20. For 15n1915 \leq n \leq 19, bn=n5b_{n} = n - 5, and for the rest, 20n3020 \leq n \leq 30, bn=15b_{n} = 15. Dividing nn into three groups: below 20 (A), above 26 (B) and between (C):


A=n=1519(bnan+1)=n=1519((n5)6+1)=n=1519(n10)=n=59n=(95+1)9+52=5×7=35.\begin{array}{l} A = \sum_{n=15}^{19} (b_n - a_n + 1) = \sum_{n=15}^{19} ((n - 5) - 6 + 1) = \sum_{n=15}^{19} (n - 10) = \sum_{n=5}^{9} n = (9 - 5 + 1) \frac{9 + 5}{2} \\ = 5 \times 7 = 35. \end{array}B=n=2026(bnan+1)=n=2026(156+1)=n=202610=10(2620+1)=10×7=70.B = \sum_{n=20}^{26} (b_n - a_n + 1) = \sum_{n=20}^{26} (15 - 6 + 1) = \sum_{n=20}^{26} 10 = 10(26 - 20 + 1) = 10 \times 7 = 70.C=n=2730(bnan+1)=n=2730(15(n20)+1)=n=2730(36n)=n=36273630n=n=96n=n=69n=(96+1)6+92=4×7.5=30.\begin{array}{l} C = \sum_{n=27}^{30} (b_n - a_n + 1) = \sum_{n=27}^{30} (15 - (n - 20) + 1) = \sum_{n=27}^{30} (36 - n) = \sum_{n=36-27}^{36-30} n = \sum_{n=9}^{6} n \\ = \sum_{n=6}^{9} n = (9 - 6 + 1) \frac{6 + 9}{2} = 4 \times 7.5 = 30. \end{array}N=A+B+C=35+70+30=135.N = A + B + C = 35 + 70 + 30 = 135.


Answer: 135.

Answer provided by https://www.AssignmentExpert.com

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