I learned the following dice game from another forum. It was not solved there. The dice game is as follows.
Toss 6 dice. Each toss you can keep one or more up to the total number of dice tossed. You continue to toss until you have no dice remaining. You may not reintroduce a die once it has been kept.
In order to get a score in this game you must have retained both a 2 and a 4. You get no score for them but without them you get no score at all . Your score is the sum of the remaining 4 dice.
The question is how to act in order to maximize your expected score.
With out a restriction on how many times you can throw the dice you don't keep(or a cost for rethrowing), it is simple. Throw all six dice until you get a 2 and a 4(You could keep the 2 or 4 from previous throws and continue with the remaining dice, it doesn't matter). Then rethrow the remaining 4 dice until you get all sixes(Again you could keep sixes from previous throws as well).