I see similar questions but not exactly the answer I'm looking for. I need to reduce this formula down so I can see the steps and understand how it is arriving at the solution. Reason being is I need to write a program that will calculate this and not knowing how to solve it myself is a problem.
$$\frac{100000}{(1+r)^1} + \frac{150000}{(1+r)^2} + \frac{200000}{(1+r)^3} + \frac{250000}{(1+r)^4} + \frac{300000}{(1+r)^5} - 250000 = 0$$
The answer appears to be r = 56.73%
It looks like this answer is saying use another formula that will allow you to start trying different answers until you eventually get one right. What I'm looking for is to show how to reduce the formula step by step to see it remain r = 56.73%. Hopefully I explained that correctly.