Harshil's standard deck of 52 playing cards contains 26 red cards and 26 black cards. Harshil places the randomly shuffled deck on the table, and guesses the colour of the top card before turning it over to reveal its colour. He repeats this with each new top card until he has gone through the whole deck.
If Harshil uses optimal strategy to maximise the chance he guesses correctly, then the expected number of correct guesses he will have once he has gone through the whole deck is equal to b a , where a and b are relatively prime, positive integers. What is a + b ?
Bonus: Generalise for B black cards and R red cards.
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.
If you assume that R ≥ B , then you can express
j = 1 ∑ R + B P [ C j ] = R + ( B R + B ) 1 k = 0 ∑ B − 1 ( k R + B )
which is the generalisation I was thinking of.
Problem Loading...
Note Loading...
Set Loading...
Let C j be the event that Harshil guesses the j th card correctly. For any 0 ≤ a , b ≤ 2 6 , let X a , b be the event that the first a + b cards comprise a Red and b Black cards. Then P [ X a , b ] = ( a + b 5 2 ) ( a 2 6 ) ( b 2 6 ) 0 ≤ a , b ≤ 2 6 Conditioning on what has happened in the first j − 1 card turns, we see that P [ C j ] = a + b = j − 1 ∑ P [ C j ∣ X a , b ] P [ X a , b ] 1 ≤ j ≤ 5 2 Harshil's optimal strategy is to guess that the next card to be turned up will be the colour of which fewer has turned up so far (and so is more likely to be the next colour chosen). Thus P [ C a + b + 1 ∣ X a , b ] = 5 2 − a − b m a x ( 2 6 − a , 2 6 − b ) 0 ≤ a , b ≤ 2 6 , a + b < 5 2 and hence P [ C j ] = a + b = j − 1 ∑ 5 2 − a − b m a x ( 2 6 − a , 2 6 − b ) × ( a + b 5 2 ) ( a 2 6 ) ( b 2 6 ) 1 ≤ j ≤ 5 2 Let Z j be the random variable equal to 1 if the j th card is guessed correctly, and 0 otherwise. Then Z = ∑ j = 1 5 2 Z j is the total number of correct choices, and E [ Z j ] = P [ Z j = 1 ] = P [ C j ] , and so the expected number of correct guesses made is j = 1 ∑ 5 2 P [ C j ] = a + b ≤ 5 1 ∑ 5 2 − a − b m a x ( 2 6 − a , 2 6 − b ) × ( a + b 5 2 ) ( a 2 6 ) ( b 2 6 ) = 1 2 3 9 7 9 6 3 3 2 3 7 0 2 6 3 7 2 4 4 3 0 6 0 0 9 6 5 4 7 5 making the answer 3 8 4 8 4 1 0 2 3 4 2 0 2 5 0 1 .