\documentclass[preview,border=1pt]{standalone}
\usepackage{amsmath,amssymb,amsthm}


\begin{document}

Consider the sequence $x_n=n^2\;(n\in\{1,2,3,\ldots\})$
\end{document}