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