PROJECT EULER · #0744
What? Where? When?
"What? Where? When?" is a TV game show in which a team of experts attempt to answer questions. The following is a simplified version of the game.
It begins with
In each round one of the remaining envelopes is randomly chosen. If the envelope contains the RED card the game ends. If the envelope contains a question the expert gives their answer. If their answer is correct they earn one point, otherwise the viewers earn one point. The game ends normally when either the expert obtains n points or the viewers obtain n points.
Assuming that the expert provides the correct answer with a fixed probability
You are given (rounded to 10 decimal places) that
Find
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.