Mathematics (JEE)Very hardGATE CS · ICPC

A fair die is rolled repeatedly. What is the expected number of rolls until three 6s appear in a row?

  1. A. 216
  2. B. 258
  3. C. 252
  4. D. 42

Correct answer: B. 258

Let the state be the current run of 6s (0, 1 or 2). The expected wait is 6 + 6^2 + 6^3 = 6 + 36 + 216 = 258, since each partial run of 6s is lost on any other roll.

More Permutations, Combinations and Probability questions

Exams that ask this topic