Clear Notion Academy

Permutations and Combinations (Beyond Advanced) Practice: How many triples (x,y,z) of integers with 0 x<y<z satisfy x+y+z=30 ?

Question

How many triples (x,y,z)(x,y,z) of integers with 0≤x<y<z0\le x<y<z satisfy x+y+z=30x+y+z=30?

Answer

Answer: 75

Hint

Count all non-negative solutions first; then remove those with a repeated value and use the symmetry between the three variables.

Solution

All non-negative solutions of x+y+z=30x+y+z=30: (322)=496\binom{32}{2}=496. Solutions in which at least two variables are equal: for the pair x=y=ax=y=a the third is 30−2a≥030-2a\ge0, so a=0,…,15a=0,\ldots,15: 1616 solutions; the same for each of the 33 pairs, 4848 in total. The solution x=y=z=10x=y=z=10 was counted three times, and lies in all three sets, so the union has 48−3+1=4648-3+1=46 elements. Solutions with all three values different: 496−46=450496-46=450. These split evenly into the 3!=63!=6 orderings of three different numbers, so exactly one ordering has x<y<zx<y<z: 450/6=75450/6=75.

More questions from Permutations and Combinations (Beyond Advanced) Practice

Practise the full set: Permutations and Combinations — Beyond Advanced