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 in lowest terms, find .