IMC / 1999 / Problems / Day 2, P8
IMC 1999 · Day 2 · P8
mediumWe throw a dice (which selects one of the numbers with equal probability) times. What is the probability that the sum of the values is divisible by 5?
Solution 1 of 3 (official)
For all nonnegative integers and modulo 5 residue class , denote by the probability that after throwing the sum of values is congruent to modulo . It is obvious that and .
Moreover, for any we have From this recursion we can compute the probabilities for small values of and can conjecture that if and otherwise. From (1), this conjecture can be proved by induction.
Solution 2 of 3 (official)
Let be the set of all sequences consisting of digits of length . We create collections of these sequences.
Let a collection contain sequences of the form where and and the digits are fixed. Then each collection consists of 5 sequences, and the sums of the digits of sequences give a whole residue system mod 5.
Except for the sequence , each sequence is the element of one collection. This means that the number of the sequences, which have a sum of digits divisible by 5, is if is divisible by 5, otherwise .
Thus, the probability is if is divisible by 5, otherwise it is .
Solution 3 of 3 (official)
For arbitrary positive integer denote by the probability that the sum of values is . Define the generating function (The last equality can be easily proved by induction.)
Our goal is to compute the sum . Let be the first 5th root of unity. Then Obviously , and for . This implies that is if is divisible by 5, otherwise it is . Thus, is if is divisible by 5, otherwise it is .
How the field did
Score distribution (field cohort)
Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.