Running Total of a Die
Roll a fair six-sided die until the running total first exceeds 12. What is the most likely final total?
Two approaches. Monte Carlo gives 13 at roughly 28%. The analytic approach uses integer partitions: the number of ways to reach each total with parts and penultimate sum . Comparing to shows exceeds . Full code in the PDF.