←Primers
    Primer · 3 min

    Combinatorics: the mathematics of counting and arrangement

    Combinatorics is the branch of mathematics that counts, arranges and selects objects, and asks which patterns must appear in large discrete structures.

    Updated 23 November 2026 · numbered links go to the papers behind each claim

    What it is

    Combinatorics is the branch of mathematics concerned with counting, arranging and selecting objects from finite or discrete collections. It asks how many ways something can be done, whether a structure with given properties must exist, and how large or small such a structure can be. Its most familiar tools are permutations and combinations: the number of ways to put a set of items in order, or to choose some of them without regard to order, a quantity given by the binomial coefficients.

    The subject has grown into several overlapping areas. Enumerative combinatorics counts objects exactly or approximately. Graph theory studies networks of points joined by lines. Extremal combinatorics asks how large a collection can be before some pattern is forced to appear. Ramsey theory shows that sufficiently large structures always contain orderly pieces. Simple principles do much of the work. The pigeonhole principle, for instance, states that if more items are placed into fewer boxes, at least one box must hold two or more.

    Combinatorics is closely tied to computer science, where algorithms, codes and networks are discrete objects, and it also connects with probability, number theory and geometry. Many of its problems are easy to state but very hard to solve, which makes the field a testing ground for new methods, including computational ones.

    What research is finding

    A research article in Nature describes FunSearch, an evolutionary procedure that pairs a pretrained large language model with a systematic evaluator[1]. Instead of searching for answers directly, it searches for computer programs that describe how to solve a problem[1]. The authors applied it to the cap set problem, which asks for the largest collection of points in a particular high-dimensional grid with no three points on a line. They report new constructions larger than the best previously known, both in specific finite dimensions and in the asymptotic case[1]. The authors motivate the approach by noting that language models can make plausible but incorrect statements, which hinders their use in scientific discovery[1].

    Pure theory has also advanced. A research article in the Journal of the American Mathematical Society proves a structural theorem about independent sets in hypergraphs, which generalise graphs by allowing an edge to join more than two points. The theorem shows that every such set is almost contained in one of a small number of relatively sparse sets. Classical results such as Szemerédi's theorem on arithmetic progressions can be phrased in this language. The authors use the theorem to give a third approach to versions of these results for sparse random sets, along with counting versions that they describe as in some cases considerably stronger[4]. A research article in the Annals of Mathematics studies sequences of large dense graphs. It shows that two different notions of convergence are equivalent and relates them to maximum cuts, Szemerédi partitions and the free energies of statistical physics[5].

    The field's reach shows in work beyond its borders. A graduate-level survey of pseudorandomness traces connections between expander graphs, error-correcting codes and pseudorandom generators[2]. A proof of the l^2 decoupling conjecture has applications to additive combinatorics that its authors discuss[3]. An article on quantum computing frames commercial problems in cybersecurity, materials and pharmaceuticals, finance and manufacturing as combinatorics problems that quantum computers might eventually address[6].

    Open questions

    Many central questions remain unsettled. Larger cap set constructions improve what is known to be achievable, but they do not by themselves determine the true maximum size. It is also unclear how widely program search guided by language models will extend. The Nature study applies it to one combinatorial problem and to one algorithmic problem, online bin packing, which the authors present as a showcase of the method's generality[1].

    In the theory of sparse random sets, several quite different methods now prove overlapping results, and the article on hypergraph independent sets notes that they have different strengths and weaknesses[4]. How these approaches relate to one another, and which problems each is best suited to, remains a matter of ongoing research. On the applied side, the quantum computing article states plainly that quantum computers are not yet available at the scale needed to solve the combinatorics problems it describes[6]. When or whether that scale will be reached remains an open question.

    Papers

    1. Mathematical discoveries from program search with large language models. Nature, 2023. doi:10.1038/s41586-023-06924-6
    2. Pseudorandomness. Foundations and Trends® in Theoretical Computer Science, 2012. doi:10.1561/0400000010
    3. The proof of the l^2 Decoupling Conjecture. Annals of Mathematics, 2015. doi:10.4007/annals.2015.182.1.9
    4. Independent sets in hypergraphs. Journal of the American Mathematical Society, 2014. doi:10.1090/s0894-0347-2014-00816-x
    5. Convergent sequences of dense graphs II. Multiway cuts and statistical physics. Annals of Mathematics, 2012. doi:10.4007/annals.2012.176.1.2
    6. Commercial applications of quantum computing. EPJ Quantum Technology, 2021. doi:10.1140/epjqt/s40507-021-00091-1