Question

Four fair six-sided dice are rolled. The probability that the sum of the results being 22 is X/1296X / 1296. The value of XX is ______________.

Official answer and solution
Official answer
10
From
Official GATE 2014 answer key

Solution

Transform the sum of dice to a complementary variable representing the deficit from maximum score 24.

Let the outcomes of the four dice be d1,d2,d3,d4∈{1,2,3,4,5,6}d_1, d_2, d_3, d_4 \in \{1, 2, 3, 4, 5, 6\}.
Total number of outcomes = 64=12966^4 = 1296.

We want the number of solutions to:

d1+d2+d3+d4=22d_1 + d_2 + d_3 + d_4 = 22

The maximum possible sum of four dice is 6×4=246 \times 4 = 24.
Define yi=6−diy_i = 6 - d_i. Since 1≤di≤61 \le d_i \le 6, we have 0≤yi≤50 \le y_i \le 5.

Rewriting the equation in terms of yiy_i:

(6−y1)+(6−y2)+(6−y3)+(6−y4)=22(6 - y_1) + (6 - y_2) + (6 - y_3) + (6 - y_4) = 22
24−(y1+y2+y3+y4)=2224 - (y_1 + y_2 + y_3 + y_4) = 22
y1+y2+y3+y4=2y_1 + y_2 + y_3 + y_4 = 2

Since the sum is only 2, no yiy_i can exceed 5, so the constraint yi≤5y_i \le 5 is automatically satisfied for all yi≥0y_i \ge 0.

The number of non-negative integer solutions to y1+y2+y3+y4=2y_1 + y_2 + y_3 + y_4 = 2 is given by the stars-and-bars formula:

(n+k−1k−1)=(2+4−14−1)=(53)=5×42×1=10\binom{n + k - 1}{k - 1} = \binom{2 + 4 - 1}{4 - 1} = \binom{5}{3} = \frac{5 \times 4}{2 \times 1} = 10

These 10 combinations correspond to:

  • One die having value 4, three dice having value 6: (41)=4\binom{4}{1} = 4 ways.
  • Two dice having value 5, two dice having value 6: (42)=6\binom{4}{2} = 6 ways.
    Total favorable outcomes X=4+6=10X = 4 + 6 = 10.

Thus, the probability is 10/129610 / 1296, so X=10X = 10.

Final answer

10

Common trap

Listing permutations manually and missing either the (4,6,6,6)(4, 6, 6, 6) or (5,5,6,6)(5, 5, 6, 6) combinations.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 1
Question
58 of 65, printed as CS Q.48
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.