Indexed Sum in LaTeX (\sum_{k \in K})

∑k∈K\sum_{k \in K}
LaTeX command
\sum_{k \in K}
Package
No package needed: built into LaTeX
Mode
Math mode only

Where it is used

Sum over every element k of a set K rather than over a numeric range.

Set-indexed sums are natural when the index set is not an interval: sums over primes \sum_{p \le x}, over divisors \sum_{d \mid n}, or over vertices in the handshake lemma \sum_{v \in V} \deg v = 2|E|. They make sense for any finite set, and for infinite ones when the series converges absolutely, since no ordering is implied. For several conditions use \substack, as in \sum_{\substack{k \in K \\ k \ne 0}}. In display mode the condition sits centered under the sigma, so keep it short to avoid a wide gap around the operator.

Minimal compilable example

Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.

∑v∈Vdeg⁡(v)=2∣E∣\sum_{v \in V} \deg(v) = 2|E|
\documentclass{article}
\begin{document}
Indexed Sum: $\sum_{k \in K}$

\[ \sum_{v \in V} \deg(v) = 2|E| \]
\end{document}

Related symbols

All الجمع والضرب →

Frequently asked questions

How do I write Indexed Sum in LaTeX?
Type \sum_{k \in K} in math mode, for example $\sum_{v \in V} \deg(v) = 2|E|$. It works in plain LaTeX without loading any package.
Which package do I need for \sum_{k \in K}?
None. \sum_{k \in K} is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
Can I use \sum_{k \in K} in text mode, or only in math mode?
Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\sum_{k \in K}$ in running text.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث