\documentclass[12pt]{article} \begin{document} \begin{displaymath} \sum_{j=0}^{\sum_{i=0}^{5}i}j = ? \end{displaymath} \end{document}