Y by Sedro
Given a fair
-sided die with sides
, consider the following game:
1. Roll the die. If the roll results in
, you win immediately.
2. Otherwise, roll again. However, if the second roll is not greater than the previous roll, you lose.
3. Continue rolling until either:
- You roll
, in which case you win.
- Or, your current roll is not greater than your previous roll, in which case you lose.
For example, when
:
- Rolls
: Win
- Rolls
: Lose
- Rolls
: Lose
- Rolls
: Win
Find a formula to find the probability of winning for any given
.


1. Roll the die. If the roll results in

2. Otherwise, roll again. However, if the second roll is not greater than the previous roll, you lose.
3. Continue rolling until either:
- You roll

- Or, your current roll is not greater than your previous roll, in which case you lose.
For example, when

- Rolls

- Rolls

- Rolls

- Rolls

Find a formula to find the probability of winning for any given
