Answer: 10
Let d1,d2,d3, and d4 be the outcomes of the four fair six-sided dice, where 1≤di≤6 for each i∈{1,2,3,4}.
We want to find the number of integer solutions to the equation:
d1+d2+d3+d4=22
To simplify, we can define a new set of variables by measuring how far each die's outcome is from its maximum value of 6. Let:
xi=6−di
Since 1≤di≤6, the new variables must satisfy 0≤xi≤5. Substituting di=6−xi into the sum equation gives:
(6−x1)+(6−x2)+(6−x3)+(6−x4)=22
24−(x1+x2+x3+x4)=22
x1+x2+x3+x4=2
Since the sum of these non-negative integers is 2, the upper bound constraint xi≤5 is automatically satisfied for all i.
The number of non-negative integer solutions to x1+x2+x3+x4=2 can be found using the stars and bars formula:
Number of solutions=(rn+r−1)=(24+2−1)=(25)=10
Alternatively, we can list the partitions of 2 into 4 non-negative integers:
- Case 1: One 2 and three 0s (e.g., 2,0,0,0). The number of permutations is 3!4!=4.
- Case 2: Two 1s and two 0s (e.g., 1,1,0,0). The number of permutations is 2!2!4!=6.
Total favorable outcomes = 4+6=10.
Since the total number of outcomes when rolling four dice is 64=1296, the probability of getting a sum of 22 is:
P(Sum=22)=129610
Comparing this with 1296X, we get:
X=10