This is LaTeX code:
[latex]
2+2^2+2^3+ ... +2^n
[/latex]