A deck of n cards numbered 1 through n are to be turned over one at a time. Before each card is shown you are to guess which card it will be. After making your guess, you are told whether or not your guess was correct but not which card was turned over. It turns out that the strategy that maximizes the expected number of correct guesses fixes a permutation of the n cards and then continually guesses 1 until it is correct, then correctly guesses 2 until either it is correct or all cards have been turned over, and then continuously guesses 3 and so on. Let G denote the number of correct guesses yielded by this strategy. Determine P(G=k). Hint: In order for G to be at least k what must be the order of the cards 1....k
Not even sure where to start. I thought G is a binomial random variable with n trials but can't find an expression for the probability of success.
Hint:
Suppose the 2 is somewhere before the 1 in the ordering. You will get exactly 1 number correct. Suppose the 2 is somewhere after the 1 in the ordering. You will get at least 2 numbers correct. Therefore, $P(G=1) = P(\text{2 is before 1 in the ordering of cards})$.
Suppose you will reach 1 before 2 in the order, but you will also reach 3 before 2. Then you will get exactly 2 numbers correct. Suppose 1 is before 2 is before 3. You will get at least 3 numbers correct. Therefore, $P(G=2) = P(\text{1 and 3 are before 2 in some order})$.
...