Placement AptitudeVery hardProduct company OA · CAT level

A fair coin is tossed repeatedly until the pattern T, H, H (tail, head, head on three consecutive tosses) first appears. What is the expected number of tosses?

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

Correct answer: B. 8

Track the longest useful suffix: states ∅, T, TH. From ∅: H keeps you at ∅, T moves to T. From T: T stays at T, H moves to TH. From TH: H finishes, T goes back to T (never to ∅). Solving E∅ = 1 + ½E∅ + ½E_T, E_T = 1 + ½E_T + ½E_TH, E_TH = 1 + ½E_T gives E_T = 6 and E∅ = 8. (A pattern with no self-overlap of length 3 always takes 2³ = 8.) 10 is the value for HTH, which overlaps itself; 14 is for HHH.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic