You have been chosen to play a game involving a 6-sided die. You get to roll the die once, see the result, and then may choose to either stop or roll again. Your payoff is the sum of your rolls, unless this sum is (strictly) greater than 6. If you go over $6$, you get $0$. What's the best strategy?
I tried to set up equations with expected value. I think that the best strategy is to roll until you get at least some value, call it $x$. But I have not been able to make too much progress. Can someone please help me?
If you have $x$, you fail and get $0$ with probability $\frac x6$, losing $x$. If you succeed, you gain a number between $1$ and $6-x$, so on average gain $$\frac {6-x}6\cdot \frac 12(7-x)-\frac x6\cdot x$$ Just make a table of this and see where it goes negative. It turns out the gain is $\frac 73$ at $x=1$, $1$ at $x=2$ and negative above that, so you should roll again when you have $2$ or less.