Find the sum of the series 1+1/3+1/9+1/27+...to n terms.

Sn = a(1-r^n)/(1-r)

Just use your formula.