This is LaTeX code:
[latex]
5 \cdot (2^{n+1}-2)
[/latex]