MathCastle
ChallengeMedium

Challenge · Medium problem

You roll a fair die and see its value; you may keep it or reroll. You may reroll at most twice (at most three rolls total), and your payoff is the value on the roll you finally keep. Playing optimally, if your expected payoff is mn\dfrac{m}{n} in lowest terms, find m+nm+n.

Practice more like this