At Ask Me Help Desk you can ask questions in any topic and have them
answered for free by our experts. To ask questions or participate in
answering them you must register for a free account. By registering you
will be able to:
Get free answers from experts in any of our 300+
topics.
You have to use logarithms to "undo" powers. This is what I get:
n = ln(1-rp/x)/ln(1+r)
Where ln is the natural logarithm. A logarithm in any base would work, as long as you used the same top and bottom, but because of the special features of log(base e), ln is often used for this type of thing.