A fund of $ \$500 $ is to be accumulated by $ n $ annual payments of $ \$100 $, plus a final payment as small as possible made one year after the last regular payment. If $ i = 0.09 $, find $ n $ and the amount of final payment.
I have gotten as far as:
$$ 500 = 100 \times (1.09)^{n} + P(1.09)^{n + 1}, $$ $$ \frac{500 - 100(1.09)^{n}}{(1.09)^{n + 1}} = P. $$
You pay $100$. After a year, that has grown to $109$, and you pay another $100$, making a balance of $209$. After another year, that $209$ has grown to ... how much? And you pay another $100$, making a balance of ... how much? And you do that one more year, and how much do you have? And what happens then?