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=20.

536
Solution
The problem asks for the number of non-negative integral solutions of the equation x1+x2+x3+4x4=20.
Since x1,x2,x3,x4 must be non-negative integers, the term 4x4 can take values that are multiples of 4 and less than or equal to 20. This means x4 can take values 0,1,2,3,4,5. We will consider each case for x4.
The number of non-negative integral solutions for an equation of the form y1+y2+⋯+yk=n is given by the stars and bars formula: (k−1n+k−1).
Case 1: x4=0
The equation becomes x1+x2+x3=20. Here, n=20 and k=3.
Number of solutions = (3−120+3−1)=(222)=222×21=11×21=231.
Case 2: x4=1
The equation becomes x1+x2+x3+4(1)=20⟹x1+x2+x3=16. Here, n=16 and k=3.
Number of solutions = (3−116+3−1)=(218)=218×17=9×17=153.
Case 3: x4=2
The equation becomes x1+x2+x3+4(2)=20⟹x1+x2+x3=12. Here, n=12 and k=3.
Number of solutions = (3−112+3−1)=(214)=214×13=7×13=91.
Case 4: x4=3
The equation becomes x1+x2+x3+4(3)=20⟹x1+x2+x3=8. Here, n=8 and k=3.
Number of solutions = (3−18+3−1)=(210)=210×9=5×9=45.
Case 5: x4=4
The equation becomes x1+x2+x3+4(4)=20⟹x1+x2+x3=4. Here, n=4 and k=3.
Number of solutions = (3−14+3−1)=(26)=26×5=3×5=15.
Case 6: x4=5
The equation becomes x1+x2+x3+4(5)=20⟹x1+x2+x3=0. Here, n=0 and k=3.
Number of solutions = (3−10+3−1)=(22)=1. (This solution is x1=0,x2=0,x3=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=536.