\documentclass[12pt]{article} \begin{document} $$ q_n = \frac{1}{nnn}\sum_{j = 1}^{nnn} e^{n i \theta({\bf r}_{ij})} $$ \end{document}