Engineering MathematicsVery hardGATE CSE · NIELIT
A fair coin is tossed repeatedly. What is the expected number of tosses until the pattern HHTHH first appears?
- A. 32
- B. 34
- C. 36
- D. 38
Correct answer: D. 38
The expectation is Σ 2ᵏ over each k for which the length-k prefix equals the length-k suffix: k = 5 (32), k = 2 (HH, 4) and k = 1 (H, 2), total 38 (confirmed by solving the 31-state linear system).
Practise more Engineering Mathematics (GATE) questionsEngineering Mathematics (GATE): notes and key points
More Engineering Mathematics (GATE) questions
- A fair coin is tossed repeatedly until either HTH or THH appears as three consecutive results. What is the probability that HTH appears…
- A fair die is rolled 10 times. What is the expected number of distinct faces that appear (correct to 4 decimal places)?
- A gambler starts with 3 rupees and bets 1 rupee at a time, winning each bet with probability 0.6 and losing with probability 0.4…
- A walker on the integers 0, 1, …, 9 starts at 4. At each step it moves +1, −1 or stays put, each with probability 1/3. The walk stops on…
- A Markov chain on states 1–4 has transition matrix with rows (1/2, 1/2, 0, 0), (1/4, 1/4, 1/2, 0), (0, 1/5, 2/5, 2/5) and (1/2, 0, 0…
- A permutation of {1, 2, …, 8} is chosen uniformly at random. What is the expected number of cycles of length at least 3 in its cycle…