There's a treasure box with \$100. There's a 0.5 probability that the box contains a bomb. The bomb has a probability of exploding on the i-th (for $i \leq 100$) day given by a uniform distribution. The bomb will eventually explode if there is a bomb. If it does not explode in the end, you can take all the money inside the treasure box. On the $i$-th day, how much are you willing to pay to play the game?
I am a little confused by the question, but I proceeded with finding the conditional probability that the treasure box doesn't have a bomb given that it doesn't explode the first $i$ days.
Let $A$ denote the event that it doesn't have a bomb. Let $D_i$ denote the event that it went the first $i$ days without exploding. We want to derive $P(A | D_i)$.
\begin{align} P(A|D_i) = \frac{P(D_i|A)P(A)}{P(D_i)} \\ P(A) = 0.5 \\ P(D_i | A) = 1 \\ P(D_i) = P(D_i | A) P(A) + P(D_i|A^c) P(A^c) \\ = 1 * 0.5 + P(D_i|A^c) * 0.5 \end{align}
For $P(D_i|A^c)$, which is given that there's a bomb in the box, what is the probability that the bomb doesn't explode in the first $i$ days. Finding the complement is easier. The complement is the probability that it explodes on any given day in the first i days, which is $i/100$. So then the complement of this is $1 - i/100$. So we have
\begin{align} P(D_i) = (2 - i/100) * 0.5 \\ P(A|D_i) = \frac{0.5}{(2 - i/100) * 0.5} \\ = \frac{1}{(2-i/100)} \end{align}
This probability gets smaller and smaller as the number of days increases without the box exploding.
After finding this, I am not sure how to answer the definitively answer the question of how much I'd pay to play the game on a given day. Because the conditional probability that the box has a bomb decreases with the number of days where the bomb doesn't explode, I would be inclined to say that I'd pay less and less, i.e., the amount I'd pay to play the game decreases as days go by.
Is there an actual amount that is optimal to offer to play such a game?