Analyzing the Setup
Imagine you are standing in a casino, holding a standard, unbiased die. You are about to throw it n times. Each throw is a moment of pure chance, a tiny event in a sequence of n independent trials.
The total number of possible sequences for n throws is:
This represents our denominator, the total universe of outcomes.
The Exclusive Club
We need exactly 3 distinct numbers to appear. First, we must decide which three numbers will appear out of the 6 faces on the die.
This is a classic combination problem:
There are 20 different 'clubs' of three numbers that could potentially appear.
The Trap of Naivety
Let us fix one such club, say {1,2,3}. We want to fill n slots such that each slot contains one of these three numbers, and each of these three numbers appears at least once.
If we simply say each of the n slots can be filled by any of the 3 numbers, we get 3n sequences. However, this counts sequences where only one or two numbers appear, which we must filter out.
The Principle of Inclusion-Exclusion
We use the Principle of Inclusion-Exclusion (PIE) to count sequences where all three numbers appear. Let A,B, and C be the sets of sequences where 1,2, and 3 are missing, respectively.
We start with 3n and subtract the cases where at least one number is missing:
Because we subtracted the cases where two numbers are missing twice, we must add them back:
Thus, the number of valid sequences for a fixed club is 3n−3(2n)+3.
Final Calculation
Since there are (36) such clubs, the total number of favorable outcomes is (36)×[3n−3(2n)+3]. Dividing by the total sample space 6n, we arrive at the final probability:
This formula accounts for the selection of the numbers, the arrangement of the sequences, and the rigorous filtering of invalid cases. It is a beautiful example of how complex constraints can be tamed by systematic counting.