The basic formula is:

FV = PV(1+i)^n

Not sure what you mean by "generate an investment of 1 to n" - please clarify. But if you know the ratio of future value to present value, and if you know...