Solveeit Logo

Question

Question: the number of triplets (x,y,z) which satisfy x+y+z = 15 where x,y,z are whole numbers is...

the number of triplets (x,y,z) which satisfy x+y+z = 15 where x,y,z are whole numbers is

Answer

136

Explanation

Solution

This is a stars and bars problem. We want to find the number of non-negative integer solutions to x+y+z=15x+y+z = 15. The formula is (n+k1k1)\binom{n+k-1}{k-1}, where n=15n=15 and k=3k=3. So, the number of solutions is (15+3131)=(172)=17×162=136\binom{15+3-1}{3-1} = \binom{17}{2} = \frac{17 \times 16}{2} = 136.