[tex]a(n) = p(1 + i) ^{n - 1} [/tex]
where n is a positive Integer.
Here,
P= Principal
I= interest
N= Duration (positive integer)
Hope this helps ..
Good luck on your assignment...