Mathematics (JEE)ModerateGATE CS

A fair coin is tossed repeatedly. What is the expected number of tosses until three heads in a row first appear?

  1. A. 8
  2. B. 14
  3. C. 12
  4. D. 16

Correct answer: B. 14

The borders of HHH are H, HH and HHH itself, with lengths 1, 2 and 3. The expected waiting time is the sum of 2^k over these lengths: E = 2 + 4 + 8 = 14. Ignoring the overlaps gives 2^3 = 8.

More Permutations, Combinations and Probability questions

Exams that ask this topic