i'll use to denote the accumulated value of the annuity since i dont know the code in LaTex..

so,

and assuming that this is a compound interest, then we can use

therefore, the middle part can be simplified (evaluated at ) as (verify) and together with the right hand side, we have or

therefore,