Solveeit Logo

Question

Question: Find the number of non-negative integral solutions of $x_1 + x_2 + x_3 + 4x_4 = 20$....

Find the number of non-negative integral solutions of

x1+x2+x3+4x4=20x_1 + x_2 + x_3 + 4x_4 = 20.

Answer

536

Explanation

Solution

The problem asks for the number of non-negative integral solutions of the equation x1+x2+x3+4x4=20x_1 + x_2 + x_3 + 4x_4 = 20.

Since x1,x2,x3,x4x_1, x_2, x_3, x_4 must be non-negative integers, the term 4x44x_4 can take values that are multiples of 4 and less than or equal to 20. This means x4x_4 can take values 0,1,2,3,4,50, 1, 2, 3, 4, 5. We will consider each case for x4x_4.

The number of non-negative integral solutions for an equation of the form y1+y2++yk=ny_1 + y_2 + \dots + y_k = n is given by the stars and bars formula: (n+k1k1)\binom{n+k-1}{k-1}.

Case 1: x4=0x_4 = 0

The equation becomes x1+x2+x3=20x_1 + x_2 + x_3 = 20. Here, n=20n=20 and k=3k=3.

Number of solutions = (20+3131)=(222)=22×212=11×21=231\binom{20+3-1}{3-1} = \binom{22}{2} = \frac{22 \times 21}{2} = 11 \times 21 = 231.

Case 2: x4=1x_4 = 1

The equation becomes x1+x2+x3+4(1)=20    x1+x2+x3=16x_1 + x_2 + x_3 + 4(1) = 20 \implies x_1 + x_2 + x_3 = 16. Here, n=16n=16 and k=3k=3.

Number of solutions = (16+3131)=(182)=18×172=9×17=153\binom{16+3-1}{3-1} = \binom{18}{2} = \frac{18 \times 17}{2} = 9 \times 17 = 153.

Case 3: x4=2x_4 = 2

The equation becomes x1+x2+x3+4(2)=20    x1+x2+x3=12x_1 + x_2 + x_3 + 4(2) = 20 \implies x_1 + x_2 + x_3 = 12. Here, n=12n=12 and k=3k=3.

Number of solutions = (12+3131)=(142)=14×132=7×13=91\binom{12+3-1}{3-1} = \binom{14}{2} = \frac{14 \times 13}{2} = 7 \times 13 = 91.

Case 4: x4=3x_4 = 3

The equation becomes x1+x2+x3+4(3)=20    x1+x2+x3=8x_1 + x_2 + x_3 + 4(3) = 20 \implies x_1 + x_2 + x_3 = 8. Here, n=8n=8 and k=3k=3.

Number of solutions = (8+3131)=(102)=10×92=5×9=45\binom{8+3-1}{3-1} = \binom{10}{2} = \frac{10 \times 9}{2} = 5 \times 9 = 45.

Case 5: x4=4x_4 = 4

The equation becomes x1+x2+x3+4(4)=20    x1+x2+x3=4x_1 + x_2 + x_3 + 4(4) = 20 \implies x_1 + x_2 + x_3 = 4. Here, n=4n=4 and k=3k=3.

Number of solutions = (4+3131)=(62)=6×52=3×5=15\binom{4+3-1}{3-1} = \binom{6}{2} = \frac{6 \times 5}{2} = 3 \times 5 = 15.

Case 6: x4=5x_4 = 5

The equation becomes x1+x2+x3+4(5)=20    x1+x2+x3=0x_1 + x_2 + x_3 + 4(5) = 20 \implies x_1 + x_2 + x_3 = 0. Here, n=0n=0 and k=3k=3.

Number of solutions = (0+3131)=(22)=1\binom{0+3-1}{3-1} = \binom{2}{2} = 1. (This solution is x1=0,x2=0,x3=0x_1=0, x_2=0, x_3=0).

To find the total number of non-negative integral solutions, we sum the solutions from all possible cases:

Total solutions = 231+153+91+45+15+1=536231 + 153 + 91 + 45 + 15 + 1 = 536.