MathDB
2015 Fall Team #5

Source:

March 26, 2022
combinatorics

Problem Statement

Felix is playing a card-flipping game. nn face-down cards are randomly colored, each with equal probability of being black or red. Felix starts at the 11st card. When Felix is at the kkth card, he guesses its color and then flips it over. For k<nk < n, if he guesses correctly, he moves onto the (k+1)(k + 1)-th card. If he guesses incorrectly, he gains kk penalty points, the cards are replaced with newly randomized face-down cards, and he moves back to card 11 to continue guessing. If Felix guesses the nnth card correctly, the game ends. What is the expected number of penalty points Felix earns by the end of the game?