Mathematics (JEE)Very hard

A fair coin is tossed repeatedly until the pattern HHT appears for the first time. What is the expected number of tosses?

  1. A. 8
  2. B. 6
  3. C. 10
  4. D. 14

Correct answer: A. 8

States: 0 (no progress), 1 (last toss H), 2 (last two HH). From HH a T finishes and an H keeps you at HH, so E₂ = 2; then E₁ = 1 + ½E₂ + ½E₀ and E₀ = 1 + ½E₁ + ½E₀ give E₀ = 8. The traps are 6 (the wait for HH), 10 (HTH, which overlaps itself) and 14 (HHH).

More Permutations, Combinations and Probability questions

Exams that ask this topic