Turán Number Calculator

ex(n,r) = max K_{r+1}-free edges

CalculatorsFreeNo Signup
4.9(670 reviews)
All Tools

Loading tool...

About Turán Number Calculator

A Turán number calculator computing ex(n,r): max edges in K_{r+1}-free graph on n vertices. The Turán graph T(n,r) achieves this. ex(n,2)=⌊n²/4⌋ (triangle-free). Fundamental to extremal graph theory. Client-side.

Turán Number Calculator Features

  • ex(n,r) value
  • Turán graph
  • Edge density
  • Sequence
  • Complement
Turán's theorem (1941): max edges in K_{r+1}-free graph on n vertices is ex(n,r) = (1-1/r)·n²/2 (approximately). Achieved by the complete r-partite graph T(n,r) with parts as equal as possible. ex(n,2)=⌊n²/4⌋ (Mantel 1907).

How to Use

Enter n and r:

  • ex(n,r): Max edges
  • Density: ex/C(n,2)
  • Graph: T(n,r) structure

Turán's Theorem

Among all K_{r+1}-free graphs on n vertices, T(n,r) has the most edges. Moreover, it's the UNIQUE such graph. This is the cornerstone of extremal graph theory. The proof uses induction on n, deleting a maximum-edge vertex.

Edge Density

ex(n,r)/C(n,2) → 1-1/r as n→∞. For triangle-free: ≤1/2. For K_4-free: ≤2/3. The Erdős-Stone theorem generalizes: for any H with χ(H)=r+1, ex(n,H)/C(n,2)→1-1/r. Chromatic number determines asymptotic density!

Step-by-Step Instructions

  1. 1Enter n, r.
  2. 2Compute ex(n,r).
  3. 3See Turán graph.
  4. 4Check density.
  5. 5Compare to C(n,2).

Turán Number Calculator — Frequently Asked Questions

What's the Turán graph T(n,r)?+

Complete r-partite graph with parts differing by at most 1. For T(7,3): parts of size 3,2,2 with all edges between parts. It's the densest K_{r+1}-free graph and the unique such extremal graph.

Why is this theorem fundamental?+

It launched extremal graph theory, answering: 'how many edges force a substructure?' The Erdős-Stone-Simonovits theorem extends it to arbitrary forbidden subgraphs. It's the foundation for Szemerédi's regularity lemma and the whole field.

What's ex(n,2)?+

⌊n²/4⌋ (Mantel's theorem, 1907): the max edges in a triangle-free graph on n vertices. Achieved by K_{⌊n/2⌋,⌈n/2⌉}. This was the first result in extremal graph theory, 34 years before Turán's general theorem.

Share this tool: