Welcome to our community

Be a part of something great, join today!

Multi-indexed sum


Well-known member
MHB Math Helper
Jan 17, 2013
How to write something similar to the following

multi-indexed sum.PNG

Or is it better to write

\(\displaystyle \sum_{n=k ,m=1}^{k+1}\)
Last edited:


Staff member
Jan 26, 2012
Try this syntax that produces the following output:

\large \sum_{p^{m} \le x \atop \text{p is prime }m \ge 1 }

\(\displaystyle \large \sum_{p^{m} \le x \atop \text{p is prime }m \ge 1 } \)

The spacing and sizing could use a little work but it's a good start for now.

EDIT: Just found another one on the same page. Try this code as well:

\large \sum_{\substack{p^{m} \le x \\ \text{p is prime }m \ge 1}}

\(\displaystyle \large \sum_{\substack{p^{m} \le x \\ \text{p is prime }m \ge 1}}\)


Well-known member
MHB Math Scholar
Jan 30, 2012
There is also the subarray environment, which is similar to the regular array environment. It allows aligning the subscripts left or right.

\atop is a plain TeX command.