# How do you do summation notation in MathJax? [closed]

For example, sum for every k from 0 to n.

How would I do this properly in MathJax format on a site that supports MathJax?

## closed as off-topic by Nicol Bolas, Ward, Robert Longson, Pierre.Vriens, MureinikJun 16 at 7:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question does not appear to be about the software that powers the Stack Exchange network, within the scope defined in the help center." – Nicol Bolas, Ward, Robert Longson, Pierre.Vriens
If this question can be reworded to fit the rules in the help center, please edit the question.

You can use the \sum' command:

$\sum_{k=0}^n k = \frac{n^2-n}{2}$


There's a Formatting Sandbox on Mathematics Meta where you can practice.

In order to get the preferred notation in accordance with ISO 80000-2, use

$$\sum\limits_{i = 1}^n {a_i}$$


However, the following notations are also used

$$\sum\nolimits_{i = 1}^n {a_i}$$

$$\sum\limits_i {a_i}$$

$$\sum\nolimits_i {a_i}$$

$$\sum {a_i}$$
`