I have an $100$-sided die. Every round, I roll the die, and can either choose to receive the amount shown by the die, or pay $1 to reroll the die and continue.
If I want to find the expected value of this game, say $E$, we can condition on rolling less than $E-1$ or more to derive the equality
$$E = \frac{\lfloor{E-1}\rfloor}{100}(E-1) + \frac{1}{100} \sum_{k=\lfloor E-1\rfloor+1}^{100} k$$
which gives approximately $E \approx 87.4$ I believe. This corresponds to a strategy of rerolling every time I roll below 87, and keeping the higher values. How does the expected value and strategy of this game change with the following modifications?
a) This time, it costs nothing to reroll, but you can have at most 100 rerolls.
b) You still have at most 100 rerolls, but it costs $1 to reroll.
Intuitively, it seems that we should approach (a) using a 'backtracking' approach. If I have just one round, my expected value is $50.5$. If I have two rounds, let $X$ be the expected value, and suppose we reroll the first roll only if we roll $a$ or lower. We have $$ \mathbb E(X) = \mathbb E(X|X>a)\mathbb P(X>a) + \mathbb 50.5\cdot \mathbb P(X\leq a) = \frac{100+a+1}{2} \cdot \frac{100-a}{100} + 50.5\cdot \frac{a}{100} $$ The right hand side is a quadratic in $a$, maximised at $a=50$, giving an expected value of $63$.
Then if $Y$ is the expected value of the third round following a strategy of rerolling the first die only if we roll $b$ or lower, we now have $$ \mathbb E(Y) = \mathbb E(Y|Y>b)\mathbb P(Y>b) + \mathbb 63\cdot \mathbb P(Y\leq b) $$ which gives $\max \mathbb E(Y) = 70.03$ for $b\in \{62,63\}$.
Clearly, I can continue and iterate up to 100, but this seems hard without a computer. Is my approach correct, and is there an easy way either extend this procedure by hand, or to approximate the value given for higher $n$?
Furthermore, how does the situation in (b) differ? It seems to me that not much changes: I simply have some $-1$s in my expectation equations, which present some computational difficulties, but the same questions still apply.