Learn / Library / Probability
Rolling past a threshold
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.
Hint
Let be the expected number of rolls when the total is , and find a relation between and .
Solution
- Let be the expected number of further rolls when the total is . At total every roll ends the game, so .
- From total , a roll of leads to total . It ends the game if , and otherwise moves to state . So over .
- Subtracting the same relation for gives , so .
- Therefore , and we start at total , which is .
- The expected number of rolls is .
Answer: