Students taking Combinatorics can use this guide to study the complete textbook “Combinatorics Through Guided Discovery” by Kenneth P. Bogart. It is a problem-driven text: instead of stating a theorem and proving it, the book gives you a chain of small counting problems and lets you discover the principle yourself. Its six chapters run from basic counting through induction and recurrences, distribution problems, generating functions and inclusion and exclusion, to groups acting on sets.
The book suits BS Mathematics and BSCS students who already know a little proof writing and want to build real counting skill, not just memorise formulas. Chapter 2 doubles as an introduction to graphs and trees, Chapter 3 organises counting into the twentyfold way, and Chapter 6 reaches Pólya counting. The PDF contains hints for selected problems but no worked solutions, so it works best in a class, a study group or alongside a conventional text.
Book Overview
| Course | Combinatorics (advanced counting) |
| Degree Programs | BS Mathematics, BS Computer Science — a combinatorics or advanced discrete mathematics course |
| Level | University — upper-undergraduate; assumes basic algebra and some proof experience |
| Edition | First PreTeXt Edition (2017), converted from the author’s final 2004 text |
| Author | Kenneth P. Bogart, Dartmouth College; edited for the PreTeXt edition by Mitchel T. Keller, Oscar Levin and Kent E. Morrison |
| Structure | 6 chapters (Basic Counting; Induction, Recursion and Graph Theory; Distribution Problems; Generating Functions; Inclusion and Exclusion; Groups Acting on Sets), plus Appendices A–C (Relations, Induction, Exponential Generating Functions), Appendix D (Hints) and Appendix E (licence) |
| Exercises | The book is made of problems: more than 400 numbered problems plus a Supplementary Problems set for each chapter. Hints for selected problems are in Appendix D; the PDF has no worked solutions |
| Language | English |
| License | GNU Free Documentation License, Version 1.3 or any later version, with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts — Model: Link-only |
| Format | Free PDF (220 pages) and a free interactive web version on the book’s site; a low-cost print edition is also sold |
Chapter List
Chapter 1: What is Combinatorics?
Difficulty: Easy · Key topics: sum and product principles, functions and digraphs, bijections, subsets, Pascal’s triangle, quotient principle, Catalan numbers, pigeonhole principle, Ramsey numbers
This chapter does not lecture; it asks you to count. Starting from tournament schedules, sandwiches and ice cream cones, the problems lead you to state the sum and product principles yourself, then to recast counting as counting functions and subsets. Digraphs picture one-to-one and onto functions, and the bijection principle says two sets have the same size exactly when a bijection links them. You then derive Pascal’s equation and the n choose k count, correct over-counting with the quotient principle, and meet lattice paths, Catalan numbers, the binomial theorem, the pigeonhole principle and the first Ramsey numbers.
Key Points:
- Sum principle: if a set is split into blocks that do not overlap, its size is the sum of the block sizes
- General product principle: a sequence of m choices with k(i) options at step i gives k(1) × k(2) × … × k(m) outcomes
- There are n^m functions from an m-element set to an n-element set, and n(n-1)…(n-k+1) one-to-one ones from a k-element set
- Bijection principle: two finite sets have the same size if and only if a bijection exists between them
- Pascal equation: C(n,k) = C(n-1,k-1) + C(n-1,k), and a set with n elements has 2^n subsets
- Quotient principle: count ordered lists first, then divide by how many lists give the same set, so C(n,k) = n! / (k! (n-k)!)
- Ramsey number R(3,3) = 6: among six people there are always three mutual acquaintances or three mutual strangers
Memory Tip: Choose, then choose again: multiply. Separate cases: add. Lists where order should not matter: divide.
Common Mistake: Counting three different ice cream flavors as 12 × 11 × 10. That counts stacked cones where order matters, so every set of three flavors is counted 3! = 6 times.
Important Questions:
- How many subsets does an n-element set have, and why? There are 2^n. Each element is either in or out, so the product principle gives 2 × 2 × … × 2; equivalently, binary strings of length n match the subsets one to one.
- Why are there 220 ways to choose three flavors from twelve, not 1320? The number 1320 = 12 × 11 × 10 counts ordered lists. Each set of three flavors appears in 3! = 6 lists, so 1320 / 6 = 220 = C(12,3).
Chapter 2: Applications of Induction and Recursion in Combinatorics and Graph Theory
Difficulty: Medium · Key topics: induction, double induction, Ramsey bounds, recurrence relations, geometric series, graphs, trees, spanning trees, deletion and contraction, shortest paths
This chapter proves and extends the tools of Chapter 1. Induction is practiced on the subset count, the binomial theorem and the general product principle, then pushed to double induction to show that Ramsey numbers exist at all, with a short look at how fast they grow. Recurrence relations follow: how to classify them as linear, constant coefficient or homogeneous, and how to solve the first-order case and the geometric series. The second half turns to graphs: degrees, walks, trees, labelled trees, spanning trees, a greedy method for cheapest spanning trees, deletion and contraction, and shortest paths.
Key Points:
- Induction: prove a base case, then show the case for k-1 implies the case for k
- Double induction proves R(m,n) exists, with the bound R(m,n) ≤ R(m-1,n) + R(m,n-1)
- A recurrence has infinitely many solutions; the starting value picks the one you want
- For a(n) = b a(n-1) + d with b not equal to 1, the solution is a(0) b^n + d (1 – b^n) / (1 – b)
- The degrees of a graph add up to twice its number of edges, and a tree on n vertices has n-1 edges
- Between any two vertices of a tree there is exactly one path; there are n^(n-2) labelled trees on n vertices
- The number of spanning trees of a graph G equals the number for G with edge e deleted plus the number for G with e contracted
Memory Tip: To find a recurrence, remove the last element or the last step and ask what is left; it should be the same problem, only smaller.
Common Mistake: Thinking a recurrence has one answer. The recurrence s(n) = 2 s(n-1) is solved by 2^n, but also by 17 × 2^n; only the starting value s(0) = 1 picks 2^n.
Important Questions:
- How many edges does a tree with n vertices have, and why? It has n-1. Deleting any edge splits a tree into two smaller trees, and induction on the number of vertices finishes the count.
- How are the degrees of a graph related to its edges? The sum of all degrees is twice the number of edges, because each edge has two endpoints. A consequence is that every graph has an even number of vertices of odd degree.
Chapter 3: Distribution Problems
Difficulty: Hard · Key topics: twentyfold way, multisets, compositions, Lah numbers, set partitions, Stirling numbers, integer partitions, Ferrers and Young diagrams, conjugate partitions
Here the counting techniques are organised into one table. The twentyfold way crosses distinct or identical objects with distinct or identical recipients and different rules about what each recipient may receive, and the problems fill each cell with a function, subset, multiset or partition model. Along the way you meet ordered functions, compositions of integers and Lah numbers. Stirling numbers of the second kind count set partitions and onto functions, and connect ordinary powers to falling factorial powers. The last section counts partitions of integers, using Ferrers and Young diagrams and conjugate partitions to prove symmetry results, including partitions into distinct parts.
Key Points:
- The twentyfold way sorts distribution problems by whether objects and recipients are distinct or identical and what each recipient must get
- k distinct objects to n distinct recipients with no limits: n^k; at most one each: n(n-1)…(n-k+1)
- k identical objects to n distinct recipients with no limits: C(n+k-1, k), the number of multisets of size k
- The number of compositions of k into n positive parts is C(k-1, n-1)
- Stirling number S(k,n) counts partitions of a k-element set into n blocks, and n! S(k,n) counts onto functions
- A partition of k is a multiset of positive integers adding to k; P(k) counts them and P(k,n) counts those with n parts
- The conjugate of a partition flips its Young diagram, swapping rows and columns
Memory Tip: Before any distribution problem ask three questions: are the objects distinct, are the recipients distinct, and what must each recipient get? The answers pick the cell in the table.
Common Mistake: Answering n^k for every distribution problem. That fits only distinct objects and distinct recipients with no restriction; identical objects or identical recipients change the answer.
Important Questions:
- How many ways can k distinct objects be given to n distinct recipients, and what changes if each recipient gets at most one? With no restriction there are n^k ways. With at most one object each there are n(n-1)…(n-k+1) ways, which is zero when k is larger than n.
- What does S(k,n) count, and how does it relate to onto functions? It counts the partitions of a k-element set into n nonempty blocks. Each partition can be matched to the n blocks in n! ways, so there are n! S(k,n) onto functions from a k-element set to an n-element set.
Chapter 4: Generating Functions
Difficulty: Hard · Key topics: picture enumerators, power series, product principle for generating functions, extended binomial theorem, partition generating functions, Fibonacci numbers, partial fractions, Catalan numbers
Generating functions are introduced as bookkeeping. A picture enumerator lists every choice of fruit as a product of symbols, and substituting x for each symbol turns that list into a polynomial whose coefficients count outcomes. The chapter then covers the algebra of power series, the product principle for generating functions and the extended binomial theorem for counting multisets. Partition generating functions use infinite products, with q as the variable, to prove identities such as distinct parts versus odd parts. The last section solves recurrences with generating functions, including Fibonacci numbers, partial fractions and a closed formula for the Catalan numbers.
Key Points:
- The generating function of a sequence a(i) is a(0) + a(1) x + a(2) x^2 + …, and the coefficient of x^n counts the outcomes of size n
- Independent choices multiply their generating functions (product principle for generating functions)
- 1 / (1 – x) = 1 + x + x^2 + …, so multisets of size k from n items have generating function (1 – x)^(-n)
- Extended binomial theorem: (1 + x)^r is the sum of C(r,i) x^i for any real number r
- Partitions of integers into any parts have the infinite product of 1 / (1 – q^i) as generating function
- Partitions into distinct parts are equinumerous with partitions into odd parts
- Partial fractions solve second-order linear recurrences; the Catalan numbers come out as C(2n,n) / (n+1)
Memory Tip: Read a generating function as a ledger: x^n is the page for outcomes of size n, and the coefficient is how many entries are on that page.
Common Mistake: Treating a generating function as a function to evaluate. Here x is only a formal symbol; you manipulate the series algebraically and never need it to converge to a number.
Important Questions:
- Why is the generating function for multisets of size k from an n-element set equal to (1 – x)^(-n)? Each element can be chosen any number of times, which contributes 1 + x + x^2 + … = 1 / (1 – x). The n choices are independent, so the factors multiply, and the coefficient of x^k is C(n+k-1, k).
- How do generating functions solve a recurrence such as a(n) = 3 a(n-1) + 2^n? Multiply by x^n and sum over n, rewrite both sides in terms of A(x), the sum of a(n) x^n, solve the resulting equation for A(x), then expand it back into a power series, using partial fractions where needed.
Chapter 5: The Principle of Inclusion and Exclusion
Difficulty: Medium · Key topics: union of overlapping sets, inclusion and exclusion, derangements, onto functions, ménage problem, proper colorings, chromatic polynomial, deletion-contraction
Chapter 5 extends the sum principle to sets that overlap. Counting plants treated with one, two or three fertilizers leads to the formulas for the union of two and three sets, then a conjecture for any number of sets, and finally the principle of inclusion and exclusion with two proofs, one by induction and one using picture enumerators. Applications follow: sharing apples when no child may get more than a fixed number, the ménage problem of seating married couples, and counting onto functions, which yields a formula for Stirling numbers. The chapter closes with proper colorings of graphs, the chromatic polynomial and its deletion-contraction recurrence.
Key Points:
- |A1 ∪ … ∪ An| = sum of single sizes – sum of pair intersections + sum of triple intersections – …, with alternating signs
- To count items with none of the properties, subtract the size of the union from the size of the whole set
- Permutations in which no element stays in its own place (nobody gets their own backpack) are counted by inclusion and exclusion
- The number of onto functions from a k-element set to an n-element set is the sum over i of (-1)^i C(n,i) (n-i)^k
- The ménage problem seats n married couples around a table so that nobody sits next to a spouse
- A coloring is proper if the two ends of every edge get different colors; with x colors the number of proper colorings is a polynomial in x
- Deletion-contraction: P(G, x) = P(G minus e, x) – P(G contract e, x)
Memory Tip: Include, exclude, include, exclude: the sign alternates with the number of sets in the intersection, odd sizes add and even sizes subtract.
Common Mistake: Stopping after subtracting the pairwise overlaps. Elements in all three sets have then been removed too often, so the triple intersection must be added back.
Important Questions:
- What is the size of A ∪ B ∪ C? It is |A| + |B| + |C| – |A ∩ B| – |A ∩ C| – |B ∩ C| + |A ∩ B ∩ C|.
- How does inclusion and exclusion count onto functions from a k-element set to an n-element set? Start with all n^k functions, subtract those that miss at least one value, and alternate over the sets of missed values. The result is the sum over i of (-1)^i C(n,i) (n-i)^k, and dividing by n! gives S(k,n).
Chapter 6: Groups Acting on Sets
Difficulty: Hard · Key topics: permutation groups, symmetric group, dihedral group, cycle structure, group actions, orbits, Burnside’s theorem, Pólya-Redfield enumeration
The final chapter counts arrangements that look different but are the same after a symmetry, which the quotient principle cannot handle when the groups of equivalent objects have unequal sizes. It starts with the rotations of a square and builds permutation groups, the symmetric group, the dihedral group, subgroups and cycle notation. Groups acting on sets then give colorings and orbits, and the Cauchy-Frobenius-Burnside theorem counts orbits by averaging fixed points. The chapter ends with Pólya-Redfield theory, which carries the idea over to generating functions so that colorings of cubes, necklaces and molecules can be counted by how many times each color is used.
Key Points:
- A permutation group contains the identity, is closed under composition, and contains the inverse of each member
- The symmetric group on n letters has n! members; the dihedral group of the square has 8
- Cycle notation writes a permutation as disjoint cycles, such as (1 2 3)(4)
- A group acts on a set when each group member gives a permutation of the set in a way that respects composition
- The orbit of an element is everything the group can move it to, and the orbits split the set into blocks
- Cauchy-Frobenius-Burnside: the number of orbits equals the average, over the group, of the number of elements each member fixes
- The Pólya-Redfield theorem uses the cycle structure of the group to produce a generating function for colorings counted up to symmetry
Memory Tip: Count what each symmetry leaves unchanged, add it all up, and divide by the size of the group: the answer is the number of truly different colorings.
Common Mistake: Dividing the total number of colorings by the size of the group. Colorings with extra symmetry have fewer look-alikes, so the classes are not all the same size, and only the fixed-point count of Burnside’s theorem gives the right answer.
Important Questions:
- What does the Cauchy-Frobenius-Burnside theorem say? If a group G acts on a set S, the number of orbits is (1 / |G|) times the sum, over every member of G, of the number of elements of S that member leaves fixed.
- Why can the quotient principle not count the colorings of a cube’s faces up to rotation? Equivalent colorings fall into classes of different sizes; for example, a cube with all faces one color is alone in its class. With no single divisor, you count orbits through fixed points instead.
Appendices A-E: Relations, Induction, Exponential Generating Functions, Hints, Licence
Appendix · Difficulty: Medium · Key topics: relations, equivalence relations, mathematical induction, strong induction, exponential generating functions, exponential formula, hints
Three short appendices support the main chapters. Appendix A treats relations as sets of ordered pairs, revisits functions and their digraphs, and develops equivalence relations, the formal reason a counted list can collapse into a set. Appendix B introduces induction by matching up subsets, moves to algebraic identities and ends with strong induction. Appendix C builds exponential generating functions for counting arrangements of distinct objects: it defines them, solves recurrences with calculus, proves the product principle for them and finishes with the exponential formula. Appendix D collects hints, and Appendix E reprints the licence.
Key Points:
- A function is a relation in which every input appears in exactly one ordered pair
- An equivalence relation is reflexive, symmetric and transitive, and it splits a set into equivalence classes
- Induction needs a base case and a step; strong induction lets the step use every smaller case
- The exponential generating function of a(i) is the sum of a(i) x^i / i!; the all-ones sequence gives e^x
- The product principle for exponential generating functions covers distinct objects that are split between two jobs
- The exponential formula gives the Bell numbers, which count all partitions of an n-element set, as the series of e^(e^x – 1)
- Appendix D gives hints to selected problems, not full solutions
Memory Tip: Use ordinary generating functions when you are choosing from identical items and exponential ones when distinct objects are being arranged or labelled.
Common Mistake: Treating Appendix D as an answer key. It nudges you toward the next step rather than giving a full solution, so you still have to write the argument yourself.
Important Questions:
- When should you use an exponential rather than an ordinary generating function? Use the exponential kind when the objects are distinct and their order or labelling matters, such as permutations and set partitions, because dividing by i! adjusts for the ways of arranging them.
- What three properties make a relation an equivalence relation? It must be reflexive, symmetric and transitive. Such a relation splits the set into equivalence classes, which is exactly how many ordered lists collapse into one set.
How to Study This Book
Read this book with a pencil, not with a highlighter. It is built almost entirely from problems, and the short passages between them name the idea you have just discovered. The author says to work on a problem until you stop making progress, move on, and return later; many problems reappear in a stronger form in later chapters.
Chapter 1 is the foundation for everything else, so do not skip it even if you have met the binomial coefficients before. If functions or digraphs feel rusty, read Appendix A, Section A.1 first, as the book itself suggests at Problem 7. Appendix B is the matching refresher on induction and should be read before Chapter 2.
Chapter 2 splits into two parts you can study separately. Sections 2.1 and 2.2 (induction, Ramsey numbers, recurrences) support Chapters 3 and 4; Section 2.3 (graphs and trees) is a self-contained mini-course in graph theory that returns in Section 5.3 on the chromatic polynomial.
Chapters 3 and 4 belong together. The Stirling numbers and partitions of Chapter 3 return as generating functions in Section 4.2, so finish Chapter 3 first. Chapter 4 is the hardest stretch of the book for most students: allow extra time for Section 4.3, where recurrences are solved with partial fractions.
Chapter 5 depends on Chapter 4 (its proof uses picture enumerators) and on Chapter 2 (deletion and contraction). Chapter 6 introduces groups from scratch, so no earlier algebra course is needed, but it can be skipped if your syllabus stops at counting. Appendix C is meant to be read after Chapter 4, as the continuation of generating functions.
Use Appendix D only after a real attempt. Problems marked (h) have a hint in the back. The PDF has no worked solutions or answer key, so if you study alone, check your results against a lecture-style text or a classmate.
The book is the 2004 text of a project that was left unfinished when the author died in 2005, converted in 2017. Nothing in it has gone out of date, but the editors note that a few problems could use revising and that this edition may differ from Bogart’s original PDF in a few places.
Used In These Programs
This book is used for a Combinatorics or advanced counting course in: BS Mathematics · BS Computer Science. Browse all Combinatorics books, all Discrete Mathematics books, or all Mathematics books.
Who Should Read This
This book is for BS Mathematics students taking Combinatorics, and for BSCS students who want the counting and generating-function side of Discrete Structures in more depth. It assumes comfort with algebra and basic proofs, and a little calculus for the power series in Chapter 4. It suits a course taught as a workshop, or a self-study group that likes to argue about problems. It is not the right first book for someone who wants worked examples and a ready summary of formulas for an exam: for that, start with Discrete Mathematics: An Open Introduction, then return here for the deeper treatment of Stirling numbers, partitions, generating functions and Pólya counting.
Applicable Universities
This book is useful for students at Pakistani universities offering BS Mathematics and BS Computer Science programs, including Punjab University, Virtual University, COMSATS, FAST, UET, NUST, and other HEC-recognized institutions, wherever a Combinatorics or advanced Discrete Mathematics course is required.
Official Copy of Combinatorics Through Guided Discovery
This book is free from its official site, bogart.openmathbooks.org. Click below to open the page, where you can download the PDF, read the interactive web version online, or find the print edition.
→ Visit Official PageFAQs
Is Combinatorics Through Guided Discovery free?
Yes. The book is released under the GNU Free Documentation License, Version 1.3 or any later version, with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. You may copy, distribute and modify it under the terms of that licence, and the PDF and web version are free on the official site.
Which edition is this, and is it current?
It is the First PreTeXt Edition, prepared in 2017 by Mitchel T. Keller, Oscar Levin and Kent E. Morrison from the final 2004 text by Kenneth Bogart. The content is nearly identical to the 2004 release, and the subject has not dated, but the project was left unfinished when the author died in 2005.
Does the PDF include solutions?
No worked solutions. Appendix D (pages 169–192) gives hints for selected problems, marked (h) in the text, but not full solutions. Students studying alone should check results against a lecture-style book or a classmate.
How many chapters and problems does it have?
Six chapters and three appendices of mathematical content, in 220 pages. It has more than 400 numbered problems, plus a Supplementary Problems section at the end of each chapter.
Is it good for complete beginners?
Honestly, it is demanding. The book teaches by problems and expects you to struggle with some of them for hours. It is best with an instructor or study group, and students who want explained examples first can begin with a standard discrete mathematics text and use this book for deeper practice.
Does it cover generating functions, Stirling numbers and Pólya counting?
Yes. Chapter 3 covers Stirling numbers and integer partitions, Chapter 4 covers ordinary generating functions, Appendix C adds exponential generating functions, and Chapter 6 reaches the Cauchy-Frobenius-Burnside theorem and Pólya-Redfield counting.
Related Books
- Discrete Mathematics: An Open Introduction – Oscar Levin (4th Edition)
- Applied Discrete Structures – Doerr & Levasseur (3rd Edition)
- Book of Proof – Richard Hammack (3rd Edition)
- Introduction to Probability – Grinstead & Snell (2nd Edition)
Combinatorics Through Guided Discovery is one of the few free textbooks that teaches counting by making you discover it, which is why it pairs well with a lecture course in Combinatorics or Discrete Structures. Browse more Mathematics books for the rest of your semester.
Combinatorics Through Guided Discovery, First PreTeXt Edition, by Kenneth P. Bogart, edited by Mitchel T. Keller, Oscar Levin and Kent E. Morrison. Free under the GNU Free Documentation License, Version 1.3 or any later version, with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Access for free at https://bogart.openmathbooks.org/
© Copyright Policy
Freebooks.pk is an educational resource for students in Pakistan. Textbooks and other books belong to their respective boards, authors and publishers, and all rights remain with them. If you are the copyright holder of any material on this page and want it changed or removed, please contact us or file a request under our DMCA policy. We review every request and remove reported content promptly.
