In this (one-player) game, the player starts with a total of $n$ points. On each turn, they choose to throw either a four-, six-, or eight-sided die, and then subtract the number thrown from their point total. The game continues until the player's point total reaches zero exactly, and they win, or falls below zero, in which case they lose.
The strategy does not seem obvious. (Even for the simple case of $n=5$, one must do a calculation.) And dynamic programming techniques show that the strategy is not straightforward. For $n≤20$, the four-sided die is optimal, except for $n=5, 6, 13, 20$, where the six-sided die is optimal, and $n=8, 14, 16$, where the eight-sided die is optimal.
For large $n$, the probability of winning approaches $0.456615178766744$, which is not a number that I recognize. (The ISC does not recognize it either.)
It's not particularly surprising that the probability of winning converges as $n$ increases, because the probability of winning with $n$ points is the mean of probability of winning with $n-i$ points, taken over a small range of $i$. Considering the probabilities as a sequence, each element lies inside the range of the previous few elements, and tends to be in the middle of that range. As one goes farther out in the sequence, variations away from the mean tend to be damped out.
My questions are:
- What's this $0.456615178766744$? (For a single $d$-sided die the probability of winning approaches $\frac 2{d+1}$, but for more dice the problem seems harder.)
- Is there any regularity to the optimal move, as $n$ increases?
- Is there any good way estimate a good strategy, short of exhaustive computer calculations? For example, in the $n=7$ situation, the four-sided die is significantly better than the six-sided die. Is there some way to see this, or at least to guess that it is so?
- Someone must have studied this before. Does the problem have a name? Can someone give me a reference to the literature?
Let $D$ be the set of dice, and let value function $V(n)$ be the maximum win probability in state $n$. Then $V$ satisfies Bellman's equations: $$V(n)=\begin{cases} 0 & \text{if $n<0$} \\ 1 & \text{if $n=0$} \\ \max\limits_{d\in D} \frac{1}{d} \sum_{r=1}^d V(n-r) & \text{if $n>0$} \\ \end{cases}$$
For $D=\{4,6,8\}$, solving Bellman's equations appears to yield limiting value $$\lim_{n\to\infty} V(n)=\frac{1311501709}{2872225388}.$$
EDIT: This conjecture was based on post-processing a floating-point calculation, apparently with insufficient precision.
Here is Python code to compute $V(n)$ with exact arithmetic: