Anyone can help me to solve it?

At a certain fixed rate of compound interest per annum, how long it takes to generate an investment of 1 to n? Assume that only one amount is invested at the beginning of the time and no withdrawal is allowed.