This is LaTeX code:
[latex]
\{ 1, x^2, \ldots, x^{n - 2}, x^n \}
[/latex]