Quoto

Learn / Library / Probability

Rolling past a threshold

ProbabilityHard

A fair -sided die is rolled repeatedly and independently, and the results are added up. You stop as soon as the running total is at least . What is the expected number of rolls? Give an exact fraction in lowest terms.

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Let be the expected number of rolls when the total is , and find a relation between and .

Solution
  1. Let be the expected number of further rolls when the total is . At total every roll ends the game, so .
  2. From total , a roll of leads to total . It ends the game if , and otherwise moves to state . So over .
  3. Subtracting the same relation for gives , so .
  4. Therefore , and we start at total , which is .
  5. The expected number of rolls is .

Answer: