First of all, I'm aware of an existing question with a similar title, but my problem is fundamentally different.
I'm trying to solve this: in the first try, there is a 5% probability of obtaining a success. In the second try, if the first one was a success, the probability resets to 5%, but if the first one was a failure, now there is 5% more probability (10%). This goes on an on for an arbitrary number of trials, what I'm trying to calculate is the expected number of trials to obtain a single success.
What I got is the probability of obtaining a success in try number $n$, which obviously depends on the probability of the previous try: $$p(n) = p(n-1)\times 0.05 + (1-p(n-1))\times(p(n-1)+0.05),$$ with $p(1)=0.05$. Is it possible to calculate what I want?
In a more general way, what I'm asking is how to calculate the expected number of trials when the probability of success in a single trial depends on the probability of the previous trial, $p(n)=f(p(n-1))$.