I have the following expression that I'm trying to simplify: $$\frac{1}{3} + \cdots+\frac{1}{3^{n-1}} +\frac{1}{3^n}.$$
This looks like a summation of $1$ to $n$ but in different terms. Can someone please explain how to simplify this/combine it into one term?
Let $p=\frac{1}{3}$ and let our sum be $S$. Note that $$pS=p^2+p^3+\cdots+p^{n+1}.$$ Calculate $S-pS$. There is a tremendous amount of cancellation, and we get $$S(1-p)=p-p^{n+1}.$$ Thus $S=\frac{p}{1-p}(1-p^n)$.
Remark: Exactly the same technique can be used to find a closed form for the sum of the finite geometric series $a+ar+\cdots +ar^{n-1}$, when $r\ne 1$. Ours was the case $a=r=\frac{1}{3}$.