Math 2.0

Combinatorics Proof

Proof of the number of edges of a complete graph

Builds on Complete graphGraphNumber of k-element subsetsBinomial coefficientFactorial formula for binomial coefficients

Proof

  1. The complete graph KnK_n has vertex set V={1,…,n}V = \set{1, \dots, n}, and any two distinct vertices are adjacent.
  2. Each edge of a graph is a 22-element subset of VV. By step 1, every 22-element subset {u,v}\set{u, v} of VV is an edge of KnK_n.
  3. So the edges of KnK_n are exactly the 22-element subsets of VV. By the number of k-element subsets, there are (n2)\binom{n}{2} of them.
  4. If n≥2n \ge 2, the factorial formula gives (n2)=n!2! (n−2)!=n(n−1)2\binom{n}{2} = \frac{n!}{2!\,(n-2)!} = \frac{n(n-1)}{2}.
  5. Let n∈{0,1}n \in \set{0, 1}. The recursion that defines the binomial coefficient gives (01)=(02)=0\binom{0}{1} = \binom{0}{2} = 0. Hence (12)=(01)+(02)=0\binom{1}{2} = \binom{0}{1} + \binom{0}{2} = 0.
  6. For n∈{0,1}n \in \set{0, 1} also n(n−1)2=0\frac{n(n-1)}{2} = 0. So in all cases KnK_n has (n2)=n(n−1)2\binom{n}{2} = \frac{n(n-1)}{2} edges.

Idea

In KnK_n every pair of distinct vertices is an edge, so counting edges is counting pairs. Choosing an ordered pair gives n(n−1)n(n-1) options, and each unordered pair is counted twice.

Reading path

To understand this page from the ground up, read these 50 pages in order. The foundations come first. The path takes the proofs Proof of the number of k-element subsets by induction, Proof that a composition of injections is injective, Proof that a function is bijective iff it has a two-sided inverse, Proof of the complement principle, Proof of Pascal's rule from the recursive definition, Proof that a composition of surjections is surjective, Proof of the factorial formula for binomial coefficients by induction, Proof of the rule of sum, Proof of the bijection principle.

  1. Binomial coefficient definition
  2. Cardinality of a finite set definition
  3. Combination definition
  4. Complete graph example
  5. Element definition
  6. Factorial definition
  7. Graph definition
  8. Proposition concept
  9. Proof of Pascal's rule from the recursive definition proof
  10. Set definition
  11. Conjunction definition
  12. Implication definition
  13. Predicate definition
  14. Pascal's rule statement
  15. Empty set object
  16. Ordered pair definition
  17. Intersection definition
  18. Existential quantifier definition
  19. Universal quantifier definition
  20. Proof of the factorial formula for binomial coefficients by induction proof
  21. Cartesian product definition
  22. Disjoint sets definition
  23. Subset definition
  24. Uniqueness quantifier definition
  25. Factorial formula for binomial coefficients statement
  26. Binary relation definition
  27. Function definition
  28. Codomain definition
  29. Function composition definition
  30. Identity function definition
  31. Injective function definition
  32. Surjective function definition
  33. Left inverse definition
  34. Right inverse definition
  35. Proof that a composition of injections is injective proof
  36. Proof that a composition of surjections is surjective proof
  37. Bijective function definition
  38. Composition of injections is injective statement
  39. Composition of surjections is surjective statement
  40. Proof that a function is bijective iff it has a two-sided inverse proof
  41. Proof of the rule of sum proof
  42. Bijective iff it has a two-sided inverse statement
  43. Rule of sum statement
  44. Proof of the bijection principle proof
  45. Proof of the complement principle proof
  46. Bijection principle statement
  47. Complement principle statement
  48. Proof of the number of k-element subsets by induction proof
  49. Number of k-element subsets statement
  50. Proof of the number of edges of a complete graph proof

Where this leads

4 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Complete_graph, Properties
About this page
Tag18Z4GBYZDH
URIm2://18Z4GBYZDH
Kindproof
WritingW0 stub
MSC05C30
ProvesNumber of edges of a complete graph
UsesComplete graph, Graph, Number of k-element subsets, Binomial coefficient, Factorial formula for binomial coefficients
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.