|
Let n be money left with Priya at any given time.
And, p(n) is her chance chances of winning the total amount a + b (all of it)
p(0)=0 [she has lost]
p(n) = p(n+1)/2 + p(n-1)/2 [at every trial, win or lose one rupee, both with the probability of 1/2]
2p(n) = p(n+1) + p(n-1)
p(n+1) - p(n) = p(n) - p(n-1)
By recursion,
p(n) = n p(1)
We know that p(a + b) = 1
p(1) = 1 / (a + b)
p(a)=a*p(1)=a/(a+b)
|