TeX source:
\displaystyle\sum_{k=1}^{8} 3^k