Folioby Interconnected
Log InSign Up

Combinatorics: A Complete Summary of Definitions, Theorems, and Proofs

A single-page survey of undergraduate combinatorics. Covers the fundamentals of counting, binomial coefficients, inclusion-exclusion, generating functions, Catalan numbers, Ramsey theory, Burnside and Polya enumeration, combinatorial designs, posets, and algebraic combinatorics. Includes a dependency diagram and a theorem-algorithm directory.

FO
Folio Official
March 1, 2026

1. Introduction: How to Use This Article

This article provides a single-page panoramic view of undergraduate combinatorics. For each topic we state the key definitions, major theorems, and principal algorithms in concise form.

How to use this page:

  • Newcomers: read the sections in order to build a coherent picture of the subject.

  • Review or exam preparation: jump to any section from the table of contents.

  • Competitive-programming reference: Section 14, “ Theorem and Algorithm Directory,”{} collects all the major results in one list.

The dependency diagram below shows how the main topics are interrelated.

graph TD
    A["Fundamentals of Counting"] --> B["Binomial Coefficients and the Binomial Theorem"]
    A --> C["Inclusion-Exclusion"]
    B --> C
    B --> D["Generating Functions I (Ordinary)"]
    C --> D
    D --> E["Generating Functions II (Exponential)"]
    A --> F["Recurrences and Counting"]
    D --> F
    B --> G["Catalan Numbers and Lattice Paths"]
    D --> G
    F --> G
    A --> H["Pigeonhole Principle and Ramsey Theory"]
    B --> I["Burnside and Pólya Enumeration"]
    A --> J["Combinatorial Designs"]
    C --> K["Posets and Lattices"]
    D --> L["Algebraic Combinatorics"]
    E --> L
    G --> L

    style A fill:#f5f5f5,stroke:#333,color:#000
    style D fill:#f5f5f5,stroke:#333,color:#000
    style G fill:#f5f5f5,stroke:#333,color:#000
    style L fill:#f5f5f5,stroke:#333,color:#000
Remark 1.
This article is designed to accompany the “ Combinatorics Textbook”{} series. Links at the end of each section point to the corresponding full-length chapter for detailed exposition and complete proofs.

2. Fundamentals of Counting

Definition 2 (Rule of sum and rule of product).
Rule of sum: if events A1​,…,Ak​ are pairwise disjoint, the number of ways for at least one of them to occur is ∣A1​∣+⋯+∣Ak​∣. Rule of product: when independent choices are made in sequence, the total number of outcomes is the product of the number of choices at each stage.
Definition 3 (Permutations and combinations).
The number of permutations (ordered selections) of r objects from a set of n distinct objects is P(n,r)=(n−r)!n!​. The number of combinations (unordered selections) is (rn​)=r!(n−r)!n!​.
Definition 4 (Permutations and combinations with repetition).
The number of permutations with repetition when choosing r objects from n types (repetition allowed, order matters) is nr. The number of combinations with repetition (multisets) is (rn+r−1​)=H(n,r).
Theorem 5 (Multinomial coefficient).
The number of ways to partition n objects into k groups of sizes n1​,…,nk​ with n1​+⋯+nk​=n is
(n1​,n2​,…,nk​n​)=n1​!n2​!⋯nk​!n!​

For more details:

https://interconnectd.app/articles/zRkJ8HA9YVar72IjiO4c

3. Binomial Coefficients and the Binomial Theorem

Theorem 6 (Binomial theorem).
For any non-negative integer n and any x,y,
(x+y)n=k=0∑n​(kn​)xkyn−k
Theorem 7 (Fundamental identities for binomial coefficients).
  • Symmetry: (kn​)=(n−kn​)

  • Pascal's rule: (kn​)=(k−1n−1​)+(kn−1​)

  • Vandermonde's convolution: (rm+n​)=∑k=0r​(km​)(r−kn​)

  • Absorption identity: k(kn​)=n(k−1n−1​)

  • Row sum: ∑k=0n​(kn​)=2n

Theorem 8 (Hockey-stick identity).
i=r∑n​(ri​)=(r+1n+1​)
Definition 9 (Generalized binomial coefficient).
For a real number α and a non-negative integer k, define (kα​)=k!α(α−1)⋯(α−k+1)​. This extends the binomial theorem to a formal power series.

For more details:

https://interconnectd.app/articles/Wa9bXQsgM1i1BPbKwiDj

4. The Inclusion-Exclusion Principle

Theorem 10 (Inclusion-exclusion principle).
For finite sets A1​,A2​,…,An​,
​i=1⋃n​Ai​​=i∑​∣Ai​∣−i<j∑​∣Ai​∩Aj​∣+i<j<k∑​∣Ai​∩Aj​∩Ak​∣−⋯+(−1)n−1∣A1​∩⋯∩An​∣
Theorem 11 (Derangements).
The number of permutations of n elements with no fixed point (a derangement) is
Dn​=n!k=0∑n​k!(−1)k​
As n→∞, Dn​/n!→1/e.
Theorem 12 (Euler's totient function).
By inclusion-exclusion, φ(n)=n∏p∣n​(1−p1​), where the product runs over the distinct prime divisors p of n.

Algorithms:

  • Fast zeta transform / fast Möbius transform: computes inclusion-exclusion over set functions in O(n⋅2n).

For more details:

https://interconnectd.app/articles/8mnGUym2F56td12OtiGf

5. Generating Functions I (Ordinary)

Definition 13 (Ordinary generating function).
The ordinary generating function (OGF) of a sequence {an​}n≥0​ is the formal power series
A(x)=n=0∑∞​an​xn
Theorem 14 (Standard OGFs).
  • 1−x1​=∑n≥0​xn (geometric series)

  • (1−x)k1​=∑n≥0​(k−1n+k−1​)xn (combinations with repetition)

  • 1−x−x21​=∑n≥0​Fn​xn (Fibonacci numbers)

Theorem 15 (Operations on generating functions).
  • Sum: A(x)+B(x) encodes the termwise sum {an​+bn​}.

  • Product (convolution): A(x)B(x) encodes {∑k=0n​ak​bn−k​}.

  • Composition: A(B(x)) corresponds to the composition of combinatorial constructions.

Remark 16.
In competitive programming, convolution is commonly accelerated to O(nlogn) using the NTT (number-theoretic transform).

For more details:

https://interconnectd.app/articles/jY8joQWd92UIXEwJmSbI

6. Generating Functions II (Exponential)

Definition 17 (Exponential generating function).
The exponential generating function (EGF) of a sequence {an​}n≥0​ is
A^(x)=n=0∑∞​an​n!xn​
EGFs are the natural tool for counting labeled structures.
Theorem 18 (Standard EGFs).
  • ex=∑n≥0​n!xn​: an​=1 (all labeled sets).

  • eex−1=∑n≥0​Bn​n!xn​: Bn​ is the n-th Bell number (number of set partitions).

  • −ln(1−x)=∑n≥1​(n−1)!n!xn​: connected permutations (cycles).

Theorem 19 (Exponential formula).
If C(x) is the EGF of a labeled structure C, then the EGF of the set construction (unordered collections of C-structures) is eC(x).
Theorem 20 (Product of EGFs and labeled merging).
A^(x)⋅B^(x)=∑n≥0​(∑k=0n​(kn​)ak​bn−k​)n!xn​. This corresponds to partitioning the label set into two parts and placing independent structures on each.

For more details:

https://interconnectd.app/articles/nm9HWZkwyxzryHxOrn52

7. Recurrences and Counting

Definition 21 (Linear recurrence).
A constant-coefficient linear recurrence of order d is a relation of the form an​=c1​an−1​+c2​an−2​+⋯+cd​an−d​.
Theorem 22 (Characteristic equation).
The characteristic equation of the recurrence an​=c1​an−1​+⋯+cd​an−d​ is xd−c1​xd−1−⋯−cd​=0. When the roots r1​,…,rd​ are all distinct, the general term is an​=α1​r1n​+⋯+αd​rdn​.
Theorem 23 (Generating-function method).
The OGF of a linear recurrence of order d is a rational function Q(x)P(x)​, and partial-fraction decomposition yields the closed-form general term.
Example 24 (Fibonacci numbers).
The recurrence Fn​=Fn−1​+Fn−2​ with F0​=0, F1​=1 has the closed form Fn​=5​φn−ψn​, where φ=21+5​​ and ψ=21−5​​.

Algorithms:

  • Matrix exponentiation: computes the n-th term of an order-d linear recurrence in O(d3logn).

  • Kitamasa's method: achieves O(d2logn), or O(dlogdlogn) with FFT, via polynomial arithmetic.

For more details:

https://interconnectd.app/articles/2mSrUhnxI0MsDHc0xNfR

8. Catalan Numbers and Lattice Paths

Definition 25 (Catalan numbers).
The Catalan numbersCn​ are defined by
Cn​=n+11​(n2n​)=(n2n​)−(n+12n​)
The first several values are C0​=1, C1​=1, C2​=2, C3​=5, C4​=14, C5​=42.
Theorem 26 (Recurrence for Catalan numbers).
C0​=1 and Cn+1​=∑k=0n​Ck​Cn−k​. The OGF is C(x)=2x1−1−4x​​.
Theorem 27 (Combinatorial interpretations ofCn​).
Cn​ counts each of the following:
  1. Dyck paths from (0,0) to (2n,0).

  2. Full binary trees with n+1 leaves.

  3. Ways to parenthesize a product of n factors.

  4. Triangulations of a convex (n+2)-gon.

  5. Non-crossing partitions of an n-element set.

Theorem 28 (Reflection principle).
Among lattice paths from (0,0) to (m,n) using unit right and up steps, the number that never cross the diagonal y=x is obtained by subtracting the “ bad”{} paths—counted via reflection—from the total (mm+n​).
Theorem 29 (Ballot problem).
Suppose candidate A receives a votes and candidate B receives b votes, with a>b. The probability that A leads throughout the entire counting process is a+ba−b​.

For more details:

https://interconnectd.app/articles/S8oJ7jobi5Ym6b6agG1r

9. The Pigeonhole Principle and Ramsey Theory

Theorem 30 (Pigeonhole principle).
If n+1 or more objects are placed into n boxes, at least one box contains two or more objects. Generalization: if kn+1 objects are placed into n boxes, at least one box contains k+1 or more objects.
Theorem 31 (Erdős–Szekeres theorem).
Every sequence of real numbers of length at least mn+1 contains a monotonically increasing subsequence of length m+1 or a monotonically decreasing subsequence of length n+1.
Definition 32 (Ramsey numbers).
The Ramsey numberR(s,t) is the smallest n such that every red-blue 2-coloring of the edges of Kn​ contains either a red Ks​ or a blue Kt​.
Theorem 33 (Ramsey's theorem).
For all positive integers s,t≥2, the Ramsey number R(s,t) is finite. The upper bound R(s,t)≤(s−1s+t−2​) holds. In particular, R(3,3)=6.
Theorem 34 (Lower bound for Ramsey numbers (Erdős)).
By the probabilistic method, R(k,k)≥2k/2 for all k≥3.
Remark 35.
Exact values of Ramsey numbers are known only for very small cases. For instance, R(5,5) is known only to satisfy 43≤R(5,5)≤48.

For more details:

https://interconnectd.app/articles/nl8Ak8npPSxP9Z04NKgD

10. Burnside's Lemma and Pólya's Enumeration Theorem

Definition 36 (Group action and orbits).
A group Gacts on a set X if there is a map G×X→X, written (g,x)↦g⋅x, satisfying e⋅x=x and (gh)⋅x=g⋅(h⋅x). The orbit of x is {g⋅x∣g∈G}.
Definition 37 (Fixed-point set).
For g∈G, the fixed-point set of g is Fix(g)={x∈X∣g⋅x=x}.
Theorem 38 (Burnside's lemma (Cauchy–Frobenius)).
If a finite group G acts on a finite set X, the number of orbits ∣X/G∣ is
∣X/G∣=∣G∣1​g∈G∑​∣Fix(g)∣
Definition 39 (Cycle index).
Let a permutation group G act on {1,…,n}, and suppose a permutation g∈G has j1​ fixed points, j2​ two-cycles, and so on. The cycle index of G is
Z(G)=∣G∣1​g∈G∑​s1j1​(g)​s2j2​(g)​⋯snjn​(g)​
Theorem 40 (Pólya's enumeration theorem).
The number of colorings with k colors that are inequivalent under G equals Z(G) evaluated at si​=k for all i. More generally, setting si​=w1i​+w2i​+⋯+wki​ yields the generating function for the distinct color patterns.

For more details:

https://interconnectd.app/articles/GstGj6NtSqVYApi8KlRm

11. Combinatorial Designs and Latin Squares

Definition 41 (Latin square).
An n×n array in which each row and each column contains every element of {1,2,…,n} exactly once is called a Latin square of order n.
Definition 42 (Mutually orthogonal Latin squares (MOLS)).
Two Latin squares L1​,L2​ of order n are orthogonal if the n2 pairs (L1​(i,j),L2​(i,j)) are all distinct. A set of k pairwise orthogonal Latin squares is called a k-MOLS.
Theorem 43 (Upper bound on MOLS).
The maximum number of MOLS of order n is at most n−1. When n is a prime power, this maximum n−1 is attained.
Definition 44 (t-(v,k,λ)design).
A t-(v,k,λ)design is a collection B of k-element subsets (blocks) of a v-element set V such that every t-element subset of V is contained in exactly λ blocks.
Theorem 45 (Fisher's inequality).
In a 2-(v,k,λ) design, the number of blocks b satisfies b≥v.
Definition 46 (Steiner triple system).
A 2-(v,3,1) design is called a Steiner triple systemS(2,3,v). Such a system exists if and only if v≡1 or 3(mod6).

For more details:

https://interconnectd.app/articles/DidOu1tnntscl8ZGTT2j

12. Partially Ordered Sets and Lattices

Definition 47 (Partially ordered set (poset)).
A partially ordered set (poset) is a pair (P,≤) consisting of a set P and a binary relation ≤ that is reflexive, antisymmetric, and transitive.
Definition 48 (Chains and antichains).
A subset in which every two elements are comparable is called a chain. A subset in which no two elements are comparable is called an antichain.
Theorem 49 (Dilworth's theorem).
In a finite poset, the maximum size of an antichain equals the minimum number of chains needed to partition the poset.
Theorem 50 (Mirsky's theorem).
In a finite poset, the maximum length of a chain equals the minimum number of antichains needed to partition the poset.
Definition 51 (Lattice).
A poset (L,≤) is a lattice if every pair of elements a,b has a least upper bound a∨b (join) and a greatest lower bound a∧b (meet).
Definition 52 (Möbius function).
The Möbius functionμ:P×P→Z on a finite poset (P,≤) is defined inductively by μ(x,x)=1 and, for x<y, ∑x≤z≤y​μ(x,z)=0.
Theorem 53 (Möbius inversion formula).
If f(x)=∑y≤x​g(y), then g(x)=∑y≤x​μ(y,x)f(y). The inclusion-exclusion principle is a special case of Möbius inversion on the power-set lattice.

For more details:

https://interconnectd.app/articles/acuWvC8ozxPEOncD8e6A

13. Combinatorics and Algebra

Definition 54 (Young diagrams and Young tableaux).
A partition of n is a weakly decreasing sequence λ=(λ1​≥λ2​≥⋯≥λk​>0) with ∣λ∣=∑λi​=n. The corresponding array of boxes is a Young diagram, and a filling of the boxes with numbers is a Young tableau.
Definition 55 (Standard Young tableau (SYT)).
A standard Young tableau of shape λ is a filling of the Young diagram with 1,2,…,n (each used exactly once) such that entries increase strictly along every row and every column.
Theorem 56 (Hook-length formula).
The number fλ of standard Young tableaux of shape λ is
fλ=∏u∈λ​h(u)n!​
where h(u) is the hook length of the box u (the number of boxes directly to its right, directly below it, plus one for the box itself).
Theorem 57 (RSK correspondence).
There is a bijection, called the Robinson–Schensted–Knuth correspondence, between permutations of {1,…,n} and pairs (P,Q) of standard Young tableaux of the same shape. An immediate consequence is ∑λ⊢n​(fλ)2=n!.
Definition 58 (Symmetric polynomials).
A polynomial invariant under all permutations of its variables is called a symmetric polynomial. The elementary symmetric polynomials ek​ and the complete homogeneous symmetric polynomials hk​ form fundamental generating sets.
Theorem 59 (Schur polynomials).
Schur polynomialssλ​, defined via semi-standard Young tableaux, form a basis of the ring of symmetric polynomials. The structure constants for multiplication of Schur polynomials (Littlewood–Richardson coefficients) arise in representation theory and intersection theory.

For more details:

https://interconnectd.app/articles/r5AaDr1oKse6YrI0MpMr

14. Theorem and Algorithm Directory

A one-line summary of the principal theorems and algorithms encountered in discrete mathematics and competitive programming.

Fundamental counting theorems:

  1. Binomial theorem: (x+y)n=∑(kn​)xkyn−k

  2. Vandermonde's convolution: (rm+n​)=∑k​(km​)(r−kn​)

  3. Inclusion-exclusion: ∣⋃Ai​∣=∑∣Ai​∣−∑∣Ai​∩Aj​∣+⋯

  4. Derangements: Dn​=n!∑k=0n​(−1)k/k!

  5. Catalan numbers: Cn​=n+11​(n2n​)

  6. Exponential formula: EGF of the set construction =eC(x)

  7. Hook-length formula: fλ=n!/∏h(u)

Existence and structure theorems:

  1. Pigeonhole principle: n+1 objects into n boxes forces at least one box with ≥2

  2. Erdős–Szekeres theorem: a sequence of length mn+1 contains an increasing subsequence of length m+1 or a decreasing one of length n+1

  3. Ramsey's theorem: R(s,t) is finite; R(s,t)≤(s−1s+t−2​)

  4. Dilworth's theorem: maximum antichain size = minimum chain partition size

  5. Fisher's inequality: b≥v in any 2-design

  6. RSK correspondence: permutations ↔ pairs of standard Young tableaux; ∑(fλ)2=n!

Group actions and symmetry:

  1. Burnside's lemma: number of orbits =∣G∣1​∑∣Fix(g)∣

  2. Pólya's enumeration theorem: substitute si​=k in the cycle index

  3. Möbius inversion: generalization of inclusion-exclusion

Principal algorithms:

  • NTT (number-theoretic transform, convolution): O(nlogn)

  • Fast zeta transform / Möbius transform: O(n⋅2n)

  • Matrix exponentiation (linear recurrences): O(d3logn)

  • Kitamasa's method: O(d2logn) or O(dlogdlogn)

  • Binomial coefficient preprocessing ((kn​)modp): O(n) preprocessing, O(1) per query

  • LIS (longest increasing subsequence): O(nlogn)

  • RSK algorithm: O(nn​)

CombinatoricsDiscrete MathematicsSummaryTheorem ReferenceAlgorithmsCompetitive Programming
FO
Folio Official

Mathematics "between the lines" — exploring the intuition textbooks leave out, written in LaTeX on Folio.

1 followers·107 articles
Combinatorics TextbookPart 1 of 13
No previous article
Next
Fundamentals of Counting: The Addition Principle, Multiplication Principle, Permutations, and Combinations

Share your expertise with the world

Write articles with LaTeX support, build your audience, and earn from your knowledge.

Start Writing — It's Free

More from Folio Official

Folio Official·March 1, 2026

Graph Theory: A Complete Summary of Definitions, Theorems, and Proofs

A single-article overview of graph theory, from basic definitions through planarity, coloring, and matroids. Covers all the key definitions, theorems, and algorithms needed for discrete mathematics and competitive programming, organized with a topic dependency diagram.

Graph TheoryDiscrete MathematicsSummary
3
Folio Official·March 1, 2026

Number Theory: A Complete Summary of Definitions, Theorems, and Proofs

A single-article survey of undergraduate number theory. Covers divisibility, congruences, the Euclidean algorithm, primes, quadratic residues, arithmetic functions, continued fractions, p-adic valuations, and algebraic integers, together with all key algorithms and a dependency diagram.

Number TheoryAlgebraSummary
2
Folio Official·March 1, 2026

Recurrence Relations and Counting: Solving Linear Recurrences

We present the method of characteristic equations for solving linear recurrences with constant coefficients, treat the case of repeated roots, discuss nonhomogeneous recurrences, establish the equivalence with generating functions, and introduce matrix exponentiation and the Kitamasa method.

CombinatoricsDiscrete MathematicsTextbook
Folio Official·March 1, 2026

The Inclusion--Exclusion Principle: Counting by Alternating Sums

We prove the inclusion--exclusion principle and apply it to derive the formula for the number of derangements D_n, Euler's totient function, the relationship between surjections and Stirling numbers of the second kind, and the M\"{o}bius inversion formula.

CombinatoricsDiscrete MathematicsTextbook