I open an account at a bank with 1% interest compounded monthly. I'm adding $100 to it at the beginning of each month (starting with month 1).
(a) Set up a recurrence relation for the amount in the account at the end of n months.
(b) Find an explicit formula for the amount in the account at the end of n months.
(c) On what date will you be able to withdraw $10000?
(a) I was able to get the recurrence relation (I think), and set it up as
$a_n=(a_{n-1}+100)(1+\frac1{1200})$
where $a_0=0$
(b) I came up with an equation that I thought would work, but it doesn't. I created a program in C++ to test it, and I came up with ~1% error after 25 months
$(100n)(1+\frac1{1200})^n$
I was wondering if I could get some help on this one or a link to another thread or page that explains how I could solve this.
EDIT
Thanks to Gerry Myerson, I was able to find the result using $$a_n=100*\sum\limits_{i=0}^n (1+\frac1{12000})^n - 100$$
This turned into $$a_n=100(\frac{(1+\frac1{1200})^{n+1}-1}{(1+\frac1{1200})-1}-1)$$
Simplified to $$a_n=100(1200[1+\frac1{1200}]^{n+1}-1201)$$
Translated to C++ this appears to work (regardless of how hard it is to read).
(c) Finished the first two, but I'm still working on this. Assistance will still be appreciated.
Yes, this is a homework question. I'm not looking for just answers, I'm looking for useful information that will help me solve these problems in the future without any help. I have no idea how to go beyond the recursive solution.
Also, this is my first time using this site, so any help with the formatting to make it easier for other people to read would also be nice.