Albert, Ben and Charles each writes randomly an integer which is within [ 1 , 1 9 ] . What is the probability that the sum of three written numbers is divisible by 3 ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
You can count the ways of rolling a total of n with three 19-sided dice by looking at the coefficient of x n in the polynomial ( x + x 2 + ⋯ + x 1 9 ) 3 . Wolfram will happily expand this polynomial for you, allowing you to read off the coefficients of the x 3 k terms, which are: 1, 10, 28, 55, 91, 136, 190, 235, 262, 271, 262, 235, 190, 136, 91, 55, 28, 10, 1. Summing this up gives a total of 2287 ways of rolling a multiple of three. Divide by the total number of outcomes, 1 9 3 = 6 8 5 9 , for the probability.
This solution is similar to Brian's, but his is more clever because he used some modular arithmetic to simplify the polynomial whereas I just let a computer do all the work.
Let Albert choose number a , Ben choose number b and Charles choose number c .
Then for a + b + c to be divisible by 3 , there are following three cases :
Case 1 : All the three numbers a , b , c are divisible by 3.
Case 2 : Only one of them is divisible by 3 and sum of other two is divisible by 3.
Case 3 : No number is divisible by 3.
Case 1 : In the interval [0, 19] there are 6 integers that are divisible by 3.
P ( all the three numbers are divisible by 3 ) = ( 1 9 6 ) 3
Case 2 : Let 3 ∣ a and 3 ∣ ( b + c ) with 3 ∤ b and 3 ∤ c .
We know any integer that is not divisible by 3 is of the form 3 m + 1 or 3 m + 2 . Taking b and c from 3 m + 1 form or from 3 m + 2 form will not get us 3 ∣ ( b + c ) . So one number should be of each form i.e. either b is of the 3 m + 1 form & c is of 3 m + 2 form or b is of 3 m + 2 form & c is of 3 m + 1 form. There are 7 numbers of the form 3 m + 1 ) and 8 numbers of the form 3 m + 2 ) in the interval [0, 19].
P ( 3 ∣ a and 3 ∣ ( b + c ) with 3 ∤ b and 3 ∤ c ) = 1 9 6 ⋅ 1 9 6 ⋅ 1 9 7 + 1 9 6 ⋅ 1 9 7 ⋅ 1 9 6 = 1 9 3 2 ⋅ 6 2 ⋅ 7
But b or c can also take place of a
So, P ( C a s e 2 ) = 3 ⋅ 1 9 3 2 ⋅ 6 2 ⋅ 7
Case 3 : Either all 3 numbers are of the form 3 m + 1 or all of them is of 3 m + 2 form. This condition must be satisfied for a + b + c to be divisible by 3.
P ( C a s e 3 ) = ( 1 9 6 ) 3 + ( 1 9 7 ) 3
Adding all the partial probability we get,
P ( 3 ∣ ( a + b + c ) ) = 1 9 3 6 3 + 6 3 ⋅ 7 + 6 3 + 7 3 = 6 8 5 9 2 2 8 7
I used process of elimination, I calculated that 1027 and the first choice were too low, and that 2589 is too high, and so one answer left
Problem Loading...
Note Loading...
Set Loading...
Considered modulo 3 , each person can draw a number with residue 0 with probability 1 9 6 , a number with residue 1 with probability 1 9 7 , and a number with residue 2 with probability 1 9 6 . It follows that the generating function for the probabilities of these residues is 1 9 1 ( 6 + 7 x + 6 x 2 )
Therefore the sum of their residues has generating function ( 1 9 1 ( 6 + 7 x + 6 x 2 ) ) 3 = n = 0 ∑ 6 a n x n , which is a degree 6 polynomial. Therefore we just need to find the sum a 0 + a 3 + a 6 .
We can easily find a 0 = a 6 = 1 9 3 6 3 and using the fact 3 = 2 + 1 + 0 = 1 + 1 + 1 and these are the only two partitions of 3 using 0 , 1 , 2 , we can find a 3 = 1 9 3 1 ( 7 3 + 3 ! ⋅ ( 6 ) ( 7 ) ( 6 ) )
Adding these, we find the probability is 1 9 3 1 ( 6 3 + 7 3 + 3 ! ( 6 ) ( 7 ) ( 6 ) + 6 3 ) = 6 8 5 9 2 2 8 7
An alternate method to calculate a 0 + a 3 + a 6 :
We can also set x = e 2 π i / 3 to note that 1 9 3 1 ( 6 + 7 e 2 π i / 3 + 6 e 4 π i / 3 ) 3 = ( a 0 + a 3 + a 6 ) + ( a 1 + a 4 ) e 2 π i / 3 + ( a 2 + a 5 ) e 4 π i / 3 and then evaluating the left-hand side by using 1 + e 2 π i / 3 + e 4 π i / 3 = 0 : 1 9 3 1 ( 6 + 7 e 2 π i / 3 + 6 e 4 π i / 3 ) 3 = 1 9 3 1 ( e 2 π i / 3 ) 3 = 1 9 3 1 = ( 1 9 3 1 + t ) + t e 2 π i / 3 + t e 4 π i / 3
Then since the coefficients are probabilities, it follows that 1 = ( 1 9 3 1 + t ) + t + t = 1 9 3 1 + 3 t ⟹ t = 3 1 ( 1 − 1 9 3 1 ) = 6 8 5 9 2 2 8 6 so that a 0 + a 3 + a 6 = 1 9 3 1 + 6 8 5 9 2 2 8 6 = 6 8 5 9 2 2 8 7