Mathematics (JEE)HardGATE CS · ICPC

A fair coin decides each round of a gambling game: a player with 2 units wins or loses 1 unit with probability 1/2 each round, and the game ends when the player holds 0 or 7 units. What is the expected number of rounds played?

  1. A. 10
  2. B. 5
  3. C. 4
  4. D. 14

Correct answer: A. 10

For a fair walk on {0, ..., N} started at i, the expected duration is i(N - i). With i = 2 and N = 7 this is 2 x 5 = 10.

More Permutations, Combinations and Probability questions

Exams that ask this topic