Dice Sum Divisible by Six
You roll ten fair six-sided dice and sum the values shown. Find the probability that the sum is divisible by .
Work it out, then compare with the answer.
SolutionShow the worked solution
Key idea. Condition on every die except the last. A single fair die covers every residue modulo exactly once.
Let be the sum of the first nine dice and the value of the tenth. is independent of and uniform on . Fix . As runs through , the sum runs through six consecutive integers. Exactly one of these is divisible by . Hence
Averaging over gives the same value unconditionally:
Generalisation. Suppose a sum of independent integer-valued terms contains at least one term that is uniform modulo . Then the sum is uniform modulo . In particular, the sum of fair -sided dice is divisible by with probability .
Variations
The same idea with a twist. Each solution gives only the changed step.
Among coins laid in front of you, one is fair and the other each show heads independently with probability . All coins are flipped. Find the probability that the total number of heads is even.
Work it out, then compare with the answer.
Solution
Condition on the biased coins. Let be the probability that they show an even number of heads. The fair coin is independent of them.
The total is even in two ways: the biased coins give an even count and the fair coin shows tails, or they give an odd count and the fair coin shows heads. So
Alternative. For independent coins with head probabilities ,
The fair coin contributes a factor , so the two probabilities are equal.
Alice has two six-sided dice with faces labelled through . One die is fair; the other is loaded so that each face comes up with probability proportional to . Alice rolls both dice and adds the results. Find the probability that the sum is odd.
Work it out, then compare with the answer.
Solution
Condition on the loaded die’s value . The fair die is independent of and is odd with probability . So plus the fair die is odd with probability , whatever is.
The loaded die’s distribution therefore plays no role. As a check, , and
You flip two fair coins. For each head obtained, you then roll one fair six-sided die. Find the probability that the sum of all the die rolls (zero if no dice are rolled) is odd.
Work it out, then compare with the answer.
Solution
Let be the number of dice rolled.
If , the sum is , which is even.
If , condition on all dice but the last. The last die is odd with probability , independently of the others, so the sum is odd with probability .
Hence