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 , 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
and the coefficient of is the answer, because each way of picking terms from the brackets is a way of choosing distinct parts that add up to . 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
Percy MacMahon, a former artillery officer and a formidable calculator, had computed 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:
There are five. Now write 7 as a sum of odd numbers, repeats allowed:
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 . Each factor can be rewritten as , so the product is
Every numerator cancels against a denominator further along. What survives are the denominators with odd exponents:
That is the generating function for partitions into odd parts, since allows any number of copies of the part . 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 appears times, write as a sum of distinct powers of two and replace the copies with parts times each power. Three copies of 1 become , 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 ? 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.