Engineering MathematicsVery hardGATE CS (PYQ pattern)

A fair coin is tossed repeatedly. What is the expected number of tosses until the pattern H T H T first appears as four consecutive tosses?

  1. A. 20
  2. B. 16
  3. C. 18
  4. D. 22

Correct answer: A. 20

Using overlaps with the pattern (the whole word, and the prefix HT that is also a suffix): E = 2⁴ + 2² = 20. A pattern with no self-overlap such as HHHT would need only 16, and 18 is the answer for HHTH.

More Engineering Mathematics (GATE) questions

Exams that ask this topic