TeX source:
a_{\bar{n} \mid i}=\frac{1-(1+i)^{-n}}{i}