Skip to content
Field Atlas

Atlas / Mathematics / The Combinatorics Thread

Field · Emerged c. 200 BCE – 1964

Enumerative Combinatorics

How many ways can something be arranged, and can the answer be found without listing them all?

5 chapters4 min read5 turning points1 open problem

Branched from
One of the thread's roots
Branched into
Extremal Combinatorics
Figures
Blaise Pascal, Leonhard Euler, G. H. Hardy, Srinivasa Ramanujan, Percy MacMahon, Hans Rademacher, George Pólya, J. Howard Redfield, Gian-Carlo Rota

In brief

Enumerative combinatorics is the mathematics of counting: how many ways to choose a committee, shuffle a deck, split a number into parts or build a molecule. Listing the possibilities one by one fails quickly, because their number explodes. The subject finds formulas, recurrences and generating functions that give the count directly.

Counting rules were found independently in India, China, the Islamic world and Europe, and the triangle of binomial coefficients has a different name in each. Euler turned counting into algebra by encoding a sequence of answers as the coefficients of a single power series. After Hardy and Ramanujan brought in complex analysis, and Pólya built symmetry into the count, Gian-Carlo Rota set out in 1964 to make a patchwork of techniques into a unified theory.

Key ideas

Binomial coefficientEnters 1654

(nk)\binom{n}{k}, the number of ways to choose kk things from nn. The coefficients form Pascal's triangle, where each entry is the sum of the two above it.

Generating functionEnters 1740 – 1748

A power series ∑anxn\sum a_n x^n whose coefficients are the answers to a counting problem. Operations on the series, like multiplying two of them, correspond to combining the problems.

PartitionEnters 1918

A way of writing a whole number as a sum of positive whole numbers, ignoring order. The number 4 has five: 44, 3+13+1, 2+22+2, 2+1+12+1+1 and 1+1+1+11+1+1+1.

Counting up to symmetryEnters 1937

Counting arrangements that are different only when no rotation, reflection or relabelling turns one into the other. Pólya's theorem does this with group theory.

Bijective proofEnters 1964

Proving two sets are the same size by pairing their elements off one to one, without counting either. Combinatorialists prize such proofs because they explain why two counts agree.

Draws on other domains

Chapter I

Counting Before Combinatorics

Counting problems are old. Around the second century BCE the Indian prosodist Pingala asked how many rhythms of long and short syllables a line of verse can have, and his commentators built the triangle of numbers that answers such questions. Bhaskara II gave rules for permutations and combinations in his Lilavati around 1150. In China, Jia Xian and Yang Hui used the same triangle to expand powers of (a+b)(a + b), and it was known in Baghdad and in Italy long before it reached France.

What Blaise Pascal added in 1654 was a systematic treatise. He derived the triangle's properties one after another, proving several by what is now called mathematical induction, and applied them to the problem of dividing stakes in an interrupted game. The same numbers count committees, paths through a grid and heads in a run of coin tosses, and they became the basis of probability theory.

Chapter II

Euler's Machine

In 1740 Philippe Naudé wrote to Leonhard Euler asking how many ways a number can be written as a sum of distinct parts. Euler's reply introduced a method that runs through combinatorics to this day. Multiply out

(1+x)(1+x2)(1+x3)(1+x4)⋯(1 + x)(1 + x^2)(1 + x^3)(1 + x^4) \cdots

and the coefficient of xnx^n is the answer, because each way of picking terms from the brackets is a way of choosing distinct parts that add up to nn. A whole sequence of answers is packed into one function. Algebra on the function, simplifying, multiplying, rearranging, then proves facts about the counts. Euler's Introductio of 1748 used it to prove results about partitions that nobody had noticed, let alone proved.

Chapter III

Hardy and Ramanujan

Partitions grow unpredictably fast. The number 10 has 42 of them, 100 has 190,569,292, and 200 has almost four trillion. In 1918 G. H. Hardy and Srinivasa Ramanujan, the self-taught Indian mathematician Hardy had brought to Cambridge, attacked Euler's generating function with the tools of complex analysis. They studied how it behaves near the edge of its circle of convergence and extracted a formula whose leading term is

p(n)≈14n3 eπ2n/3.p(n) \approx \frac{1}{4n\sqrt3}\, e^{\pi \sqrt{2n/3}} .

Percy MacMahon, a former artillery officer and a formidable calculator, had computed p(200)=3,972,999,029,388p(200) = 3{,}972{,}999{,}029{,}388 by hand. The full formula of Hardy and Ramanujan, with a few correction terms, matched it exactly. Two decades later Hans Rademacher turned it into an exact infinite series. A question about whole numbers had been answered with circles in the complex plane.

Chapter IV

A Closer Look: Two Ways to Break Up Seven

Write 7 as a sum of distinct positive whole numbers, ignoring order:

7,6+1,5+2,4+3,4+2+1.7, \quad 6+1, \quad 5+2, \quad 4+3, \quad 4+2+1 .

There are five. Now write 7 as a sum of odd numbers, repeats allowed:

7,5+1+1,3+3+1,3+1+1+1+1,1+1+1+1+1+1+1.7, \quad 5+1+1, \quad 3+3+1, \quad 3+1+1+1+1, \quad 1+1+1+1+1+1+1 .

Again five. This is no coincidence. Euler proved that for every number the two counts agree, and his generating functions show why in one line. Partitions into distinct parts are counted by (1+x)(1+x2)(1+x3)⋯(1+x)(1+x^2)(1+x^3)\cdots. Each factor can be rewritten as 1+xk=1−x2k1−xk1 + x^k = \dfrac{1 - x^{2k}}{1 - x^k}, so the product is

1−x21−x⋅1−x41−x2⋅1−x61−x3⋅1−x81−x4⋯\frac{1-x^2}{1-x} \cdot \frac{1-x^4}{1-x^2} \cdot \frac{1-x^6}{1-x^3} \cdot \frac{1-x^8}{1-x^4} \cdots

Every numerator 1−x2k1 - x^{2k} cancels against a denominator further along. What survives are the denominators with odd exponents:

1(1−x)(1−x3)(1−x5)⋯.\frac{1}{(1-x)(1-x^3)(1-x^5)\cdots} .

That is the generating function for partitions into odd parts, since 11−xk=1+xk+x2k+⋯\frac{1}{1-x^k} = 1 + x^k + x^{2k} + \cdots allows any number of copies of the part kk. Two different counting problems have the same function, so they have the same answers.

Combinatorialists later found a proof that pairs the partitions off directly. If an odd part kk appears mm times, write mm as a sum of distinct powers of two and replace the copies with parts kk times each power. Three copies of 1 become 2+12 + 1, and two copies of 3 become 6. Every partition into odd parts turns into exactly one partition into distinct parts, and back. That kind of explicit matching, a bijection, has become the standard the field aims for.

Chapter V

Counting Up to Symmetry

Many counting problems care about shape, not labels. How many different necklaces can be made from four black and four white beads, when turning a necklace round does not make it different? How many molecules have the formula C6H14\text{C}_{6}\text{H}_{14}? In 1937 George Pólya showed how to average over the group of symmetries to get the answer, as J. Howard Redfield had in a 1927 paper that almost nobody read. Group theory became a counting tool.

By the 1960s the subject was a large collection of techniques with little theory connecting them. Gian-Carlo Rota began to supply one in 1964, and counting became a branch of mathematics with its own journals, conjectures and open problems. Some of those problems are about existence rather than number. Whether a Hadamard matrix exists for every multiple of four, a question from 1933, is still open. Order 668 was the smallest missing case until 2026.

Applications

Where it is used

  • Phylogenetics↗ Biology · Evolutionary Biology

    Why the tree of life can't be found by brute force

    The number of possible unrooted evolutionary trees for nn species is 1×3×5×⋯×(2n−5)1 \times 3 \times 5 \times \cdots \times (2n-5). For just 20 species that is about 2.2×10202.2 \times 10^{20}. Counting it showed biologists that searching every tree is hopeless, and tree-building programs use heuristic searches instead.

    › Sources (1)
    • Felsenstein, J. (1978). The number of evolutionary trees. Systematic Zoology 27(1): 27–33.
  • Statistical physics↗ Physics · Statistical Mechanics

    Entropy is a count

    Boltzmann's entropy S=klog⁡WS = k \log W counts WW, the number of microscopic arrangements consistent with what is observed. The laws of thermodynamics become statements about which kinds of arrangement vastly outnumber the others.

    › Sources (1)
    • Boltzmann, L. (1877). Über die Beziehung zwischen dem zweiten Hauptsatze der mechanischen Wärmetheorie und der Wahrscheinlichkeitsrechnung. Sitzungsberichte der Kaiserlichen Akademie der Wissenschaften Wien 76: 373–435.
  • Chemistry

    Counting molecules before making them

    Cayley counted the possible alkanes, chains of carbon and hydrogen, in 1875, and Pólya's theorem made such counts routine. Chemists use them to know how many isomers a formula allows, and drug designers to estimate the size of chemical space.

    › Sources (1)
    • Pólya, G. & Read, R. C. (1987). Combinatorial Enumeration of Groups, Graphs, and Chemical Compounds. Springer.

Open problems

Where the map runs out

Open

The Hadamard conjecture

Open as of 2026. In 2026 a team including Levent Alpöge, working with an AI model, announced matrices for 668 and the other missing orders below 2000, so the smallest unknown order is now above 2000.

A Hadamard matrix is a square grid of +1+1s and −1-1s whose rows are pairwise orthogonal: any two rows agree in exactly half their positions. Such a matrix can only exist when its size is 1, 2 or a multiple of 4. The conjecture, going back to Raymond Paley in 1933, is that one exists for every multiple of 4.

Why it is hard

There are several clever constructions, from finite fields and from smaller matrices, but each covers only some sizes. The rest have been found by computer searches, and the search space grows far too fast to be covered by brute force. Order 428 was found only in 2004, and 668, the smallest gap for two decades, only in 2026.

What resolving it unlocks

Hadamard matrices give the best error-correcting codes of certain kinds, efficient experimental designs and signal-processing transforms. A proof would also show that a general construction exists, where only special cases are now known.

› Sources (2)

Further reading

  1. Wilf, H. S. (2006). generatingfunctionology (3rd ed.). A K Peters.

    A lively introduction to generating functions. The second edition is free online.

  2. Edwards, A. W. F. (1987). Pascal's Arithmetical Triangle. Charles Griffin / Oxford University Press.

    The history of the triangle across cultures, and what Pascal added.

  3. Stanley, R. P. (2012). Enumerative Combinatorics, Vol. 1 (2nd ed.). Cambridge University Press.

    The standard graduate text, with hundreds of exercises.