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?
- A. 6
- B. 8
- C. 10
- 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.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A fair coin is tossed until either H, T, H or H, H, T appears as three consecutive tosses. What is the probability that H, T, H appears…
- Asha has ₹3 and Bharat has ₹5. They play rounds in which Asha wins ₹1 from Bharat with probability 2/3 and loses ₹1 to him with…
- In how many ways can 4 numbers be chosen from 1, 2, …, 15 so that any two chosen numbers differ by at least 3?
- A robot walks on a grid from (0, 0) to (6, 4), each step one unit east or one unit north. It is never allowed to be at a point where its…
- How many ordered pairs (a, b) of positive integers have lcm(a, b) = 720?
- 6 different gifts are given to 4 children so that every child gets at least one gift and a particular child, Kavya, gets exactly two. In…