12 zombies are in a room. 6 are green. 6 are blue.
Every minute they randomly form four groups of three. In any group, all three become the color of the majority (i.e. if two blue zombies and one green zombie are in a group, then they all become blue).
The expected number of minutes before all zombies are the same color can be written as b a , where a and b are coprime positive integers. What is a + b ?
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.
Here is slightly easier way of calculating the probabilities p 1 and p 2 . Apart from this, my solution technique is the same as Geoff's.
Suppose the zombies display a slight modicum of intelligence, and form the groups by lining up in a row of 1 2 . Zombies numbered 1-3 form the first group, those numbered 4-6 form the second group, those numbered 7-9 form the third group, those numbered 10-12 form the fourth group. We can assume that, other than in matters of colour, zombies are indistinguishable. Geoff's solution has distinguishable zombies.
To calculate p 1 , note that the 6 blue zombies are equally likely to end up anywhere in the line, and so there are ( 6 1 2 ) = 9 2 4 ways of arranging the blue zombies. There will only be 3 blue zombies after a line-up if three blue zombies end up in one group, and one blue zombie ends up in each of the other three groups. There are 4 × 3 × 3 × 3 = 1 0 8 ways of doing this. Thus p 1 = 9 2 4 1 0 8 = 7 7 9 .
To calculate p 2 , there are ( 3 1 2 ) = 2 2 0 ways of arranging 3 blue zombies in a line. We can only end up with no blue zombies if there is one blue zombie in each of three of the four groups. There are 4 × 3 × 3 × 3 = 1 0 8 ways in which this can happen. Thus p 2 = 2 2 0 1 0 8 = 5 5 2 7 .
Nice write up, Mark! Glad to finally have a solver... Woo hoo! (Was starting to question my answer/logic! :0) )
Problem Loading...
Note Loading...
Set Loading...
Let (m,n) be the state representing m blue zombies and n green zombies.
Let E m n represent the expectated number of minutes to have all the zombies be the same color from the state (m,n).
So, from (6,6) you can go to (3,9) , (9,3) or return to (6,6).
From (9,3) you can go to (9,3) or (12,0)
And from (3,9) you can go to (3,9) or (0,12).
By symmetry we can define,
p 1 = Probability you will go from (6,6) to (9,3) or (3,9)
p 2 = Probability you will go from (9,3) to (12,0) or (3,9) to (0,12)
This gives the equations:
E 6 6 = 1 + p 1 E 3 9 + p 1 E 9 3 + ( 1 − 2 p 1 ) E 6 6 E 3 9 = 1 + ( 1 − p 2 ) E 3 9 E 9 3 = 1 + ( 1 − p 2 ) E 9 3
Now for the probabilities...
The total number of ways to split the twelve zombies into four groups of three is:
N = ( 3 ! ) 4 × 4 ! 1 2 ! = 1 5 4 0 0
The only way they can move on to (9,3) is if you have 3 green ones in one group, with the other 3 groups having one green one each.
The number of ways of picking zombies in this way is given by:
n 1 = 3 ! ( 3 6 ) × 3 ( 2 6 ) × 2 ( 2 4 ) = 1 8 0 0
This is because there are ( 3 6 ) ways to pick 3 green ones in one group, then 3 ( 2 6 ) ways to choose the one green and two blues in the next group, and finally 2 ( 2 4 ) ways of picking one green and two blues in the third group. The fourth group is just the left overs so only one choice there once the other three groups are chosen. Finally, we need to divide by 3 ! to account for that many ways the three identical groups can be arranged.
So,
p 1 = N n 1 = 1 5 4 0 0 1 8 0 0
Finally, to go from (9,3) to (12,0) you would need to have all three of the greens in different groups.
The number of ways to pick this is:
n 2 = 3 ! 3 ( 2 9 ) × 2 ( 2 7 ) × ( 2 5 ) = 7 5 6 0
This is because if you look at the groups, you will have 3 ( 2 9 ) ways to choose the first group with a one green, 2 ( 2 7 ) ways to choose the second group with one green, and ( 2 5 ) ways to choose the third group with one green. (The fourth group just gets the left over blues) Again we divide by 3 ! to account for that many ways the three identical groups can be arranged.
Therefore,
p 2 = N n 2 = 1 5 4 0 0 7 5 6 0
Solving,
E 6 6 = 5 4 3 4 1
3 4 1 + 5 4 = 3 9 5