A fair six-sided die (with faces numbered 1, 2, 3, 4, 5, 6) is repeatedly thrown independently. What is the expected number of times the die is thrown until two consecutive throws of even numbers are seen? A. 8 B. 4 C. 6 D. 8

GATE 2024 · Engineering Mathematics · Expectation · medium

Answer: The expected number of throws is 6.

  1. Write first-step equations: E0 = 1 + (1/2)*E1 + (1/2)*E0 [from S0: roll 1, even->S1, odd->S0] E1 = 1 + (1/2)*0 + (1/2)*E0 [from S1: roll 1, even->done (0 more), odd->S0]
  2. Solve for E0: From E0 equation: (1/2)E0 = 1 + (1/2)E1 => E0 = 2 + E1. Substitute E1 = 1 + (1/2)*E0: E0 = 2 + 1 + (1/2)E0 = 3 + (1/2)E0 (1/2)E0 = 3 => E0 = 6