Lucky Seven

Let S S be the set of non-negative integer triples ( x , y , z ) (x,y,z) that satisfy the equation x + y + z = 28 x + y + z = 28 . If a triple is chosen uniformly at random from S S , then what is the probability that the product x y z xyz is divisible by 7 7 ?

If the probability is a b \dfrac{a}{b} , where a , b a,b are positive coprime integers, then enter a + b a + b as your answer.


The answer is 42.

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.

1 solution

First, the number of elements in S S can be calculated using the stars and bars method . We find that

S = ( 28 + 3 1 3 1 ) = ( 30 2 ) = 30 × 29 2 = 435 |S| = \dbinom{28 + 3 - 1}{3 - 1} = \dbinom{30}{2} = \dfrac{30 \times 29}{2} = 435 .

Now as 7 7 is prime, x y z xyz will be divisible by 7 7 if and only if at least one of x , y , z x,y,z to be divisible by 7 7 . If we let

  • N x , N y , N z N_{x}, N_{y}, N_{z} be the number of elements of S S in which x , y , z x,y,z , respectively, are divisible by 7 7 ,

  • N x y , N x z , N y z N_{xy}, N_{xz}, N_{yz} be the number of elements of S S in which both subscript variables are divisible by 7 7 , and

  • N x y z N_{xyz} be the number of elements of S S in which all of x , y , z x,y,z are divisible by 7 7 ,

then by inclusion-exclusion the number of elements ( x , y , z ) (x,y,z) of S S for which 7 x y z 7|xyz is

N x + N y + N z N x y N x z N y z + N x y z N_{x} + N_{y} + N_{z} - N_{xy} - N_{xz} - N_{yz} + N_{xyz} .

Now by symmetry N x = N y = N z N_{x} = N_{y} = N_{z} . Also, since the sum of the variables is 28 28 , i.e., a multiple of 7 7 , if any two of x , y , z x,y,z are divisible by 7 7 then so must the third variable. By this fact and symmetry we have that N x y = N x z = N y z = N x y z N_{xy} = N_{xz} = N_{yz} = N_{xyz} .

To calculate N x N_{x} , we first note that x { 0 , 7 , 14 , 21 , 28 } x \in \{0, 7, 14, 21, 28\} . This in turn requires us to find the number of non-negative integer solutions to y + z = 28 x y + z = 28 - x for each of the 5 possible values for x x . By stars and bars the number of solutions will be ( 28 x + 2 1 1 ) = 29 x \dbinom{28 - x + 2 - 1}{1} = 29 - x , and thus

N x = 29 + 22 + 15 + 8 + 1 = 75 N_{x} = 29 + 22 + 15 + 8 + 1 = 75 .

Next, to calculate N x y z N_{xyz} , (and thus also N x y , N x z N_{xy}, N_{xz} and N y z N_{yz} ), we need to count all permutations of the triples ( 0 , 0 , 28 ) , ( 0 , 7 , 21 ) , ( 0 , 14 , 14 ) (0,0,28), (0,7,21), (0,14,14) and ( 7 , 7 , 14 ) (7,7,14) . This adds up to 3 + 6 + 3 + 3 = 15 3 + 6 + 3 + 3 = 15 .

So by inclusion-exclusion the number of suitable triples is 3 × 75 2 × 15 = 195 3 \times 75 - 2 \times 15 = 195 , which gives us a probability of 195 435 = 13 29 \dfrac{195}{435} = \dfrac{13}{29} . So finally a + b = 13 + 29 = 42 a + b = 13 + 29 = \boxed{42} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...