(i) Since x+y+z+w=20
Here x≥0,y≥0,z≥0,w≥0
The number of solutions of the given equation in this case is same as the
number of ways of distributing 20 things among 4 different groups.
Hence total number of solutions
= 20+4−1C4−1
= 23C3
=23.22.211.2.3=1771
(ii) Since x+y+z+w=20...(i)
Here x≥1,y≥1,z≥1,w≥1
or x−1≥0,y−1≥0,z−1≥0,w−1≥0
Let x1=x−1⇒x=x1+1
y1=y−1⇒y=y1+1
z1=z−1⇒z=z1+1
w1=w−1⇒w=w1+1
Then, from (i)
x1+1+y1+1+z1+1+w1+1=20
⇒x1+y1+z1+w1=16
and x1≥0,y1≥0,z1≥0,w1≥0
Hence the total number of solutions
= 17+4−1C4−1
= 19C3=19.18.171.2.3
=57. 17=969
Alternative Method:
(ii)∵x+y+z+w=20
x≥1,y≥1,z≥1,w≥1
Hence the total no. of solutions
= 20−1C4−1= 19C3=969