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 poweredAI로 LaTeX 작성

최고의 AI LaTeX 편집기, Overleaf 대안

Octree는 15개 이상의 대학의 연구자들이 AI를 사용하여 논문을 더 빠르게 작성하도록 도움

  • AI로 아름다운 TikZ 다이어그램 생성
  • 이미지를 업로드하고 LaTeX로 원활하게 변환
  • 논문 작성 및 서식에 대한 즉각적인 지원 받기