I got the following recursive expression for your problem

E(x) which I prefer to write as E(n,m) as it is a function of n,m

E(n,m) = n/(n+m) E(n-1,m) + 1

Note the end condition E(0,m) = 1

To check your answer you can use E(n,0) = n

Hope it helps !