The number of triplets (x,y,z), where x,y,z are distinct non negative integers satisfying x+y+z=15, is :
Solutions · 1
Official solution
We have, x+y+z=15
\[
Total number of solution =15+3−1C3−1=17C2=1×217×16=136
\]
Now, we need to exclude the solutions where two of (x,y,z) are the same.
1) For the case x=y=z :
2x+z=15
The solutions are :
x=0,z=15x=1,z=13x=2,z=11x=3,z=9x=4,z=7x=5,z=5 (Not valid as all are the same)
x=6,z=3x=7,z=1
Out of these, 7 are valid.
Similarly, for the cases y=z=x and z=x=y, there will be 7 valid solutions for each, so a total of 7×3=21 solutions where two of the variables are equal.
Thus, the number of triplets where all are distinct is :
136−21=115
There is one solution in which x=y=z
Required answer =136−21−1=114