Analyzing the Setup
The problem asks us to find the number of non-negative integer solutions to the equation:
subject to the constraint that x,y,z must be distinct. We will approach this by first calculating the total number of non-negative solutions and then subtracting the cases where the variables are not distinct.
The Total Universe
Ignoring the distinct constraint, we use the Stars and Bars method. For an equation x1+x2+⋯+xr=n, the number of non-negative integer solutions is given by the formula:
Here, n=15 and r=3. Substituting these values, we get:
Calculating this value:
There are 136 total non-negative integer solutions.
The Anatomy of the 'Not-Distinct' Trap
To find the number of distinct triplets, we use complementary counting. We must subtract the cases where the variables are not distinct.
These unwanted cases fall into two categories:
1. All three variables are equal (x=y=z).
2. Exactly two variables are equal (e.g., $x = y
eq z$).
Analyzing the Unwanted Cases
First, consider the case where all three are equal: x=y=z. Substituting into the original equation:
This yields exactly one triplet: (5,5,5).
Next, consider the case where exactly two variables are equal. Let $x = y
eq z$. The equation becomes:
Since z≥0, we have 2x≤15, meaning x can be any integer from 0 to 7. This provides 8 possible pairs for (x,z).
However, if x=5, then z=5, which results in (5,5,5). Since we already counted this in the "all three equal" category, we exclude it. This leaves 8−1=7 valid cases where exactly two variables are equal.
Because the equal pair could be (x,y), (y,z), or (z,x), there are 3 such scenarios. Thus, the total number of cases where exactly two variables are equal is:
Final Calculation
The total number of unwanted cases is the sum of the "all three equal" case and the "exactly two equal" cases:
Finally, we subtract the unwanted cases from the total universe to find the number of distinct triplets:
The total number of distinct non-negative integer triplets is 114.