[Tex/LaTex] How to type primed sum


I need to type a "primed sum" (a summation symbol with a ' at the top right corner of the summation symbol) in latex. How can I do this?

Best Answer

The amsmath package has documentation which suggests there are 2 choices, depending on whether your sum has limits or not.

\[\sum\nolimits'\] %if no limits in the sum
\[ \sideset{}{'}\sum_{n<k,\;\text{$n$ odd}} nE_n \] %if limits in the sum