You have a bag with 8 red balls in it.
Every turn you randomly select a ball from the bag. If it is red you replace it with a blue ball, and if it is blue you replace it with a red ball.
What is the expected number of turns you need to make before all 8 balls in the bag are blue?
If the answer is , where and are coprime positive integers , what is ?
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.
To solve this you need to solve the following set of linear equations:
where E n represents the expected number of moves given that you have n blue balls in the bag.
Solving this for E 0 gives, E 0 = 3 2 7 6 8 / 1 0 5 .
3 2 7 6 8 + 1 0 5 = 3 2 8 7 3