RatMath ShelfCourse guide

University: upper level

Combinatorics

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

90%

36 of 40 focal problems use RatMath for a calculation or a substantive step.

Direct calculation
35 · 87.5%
Assisted
1 · 2.5%
Worked by hand
4 · 10%

Using the packages

Exact counting functions make large answers readable, but interpreting labels, order, repetition and symmetry is the main part of setting up a counting argument.

Calculator interface

Ask which objects are distinguishable and which symmetries identify outcomes. Display a small enumeration beside the counting formula and offer ranking for larger families.

Packages used in the lessons

@ratmath/discrete (29 days) · @ratmath/core (6 days) · @ratmath/structures (1 days) · @ratmath/stats (1 days)

How to read the percentages

Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.

Classroom inputs and practical limits

36 of 40 days include a checked executable example. On 8 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.

Ranges across the five units

Days 1–8 · Elementary counts. Choose from sets of roughly 2–100 elements, often with small k or k near half the set size.

Unit benchmark · discrete.binomial, objects. Largest passing sample 10,000 (8.36 ms, 88 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Partitions of sets and permutations. Permutations or set partitions mainly of 2–12 elements for listings; much larger n may be practical when only counting.

Unit benchmark · discrete.stirling2, elements. Largest passing sample 512 (181 ms, 113 MiB peak process RSS). The first sampled passing call above 100 ms used 512 (181 ms). The runs did not locate a ceiling for this family.

Days 17–24 · Integer partitions and series. Compositions, integer partitions and truncated generating functions typically through degrees 5–30.

Unit benchmark · discrete.stirling2, elements. Largest passing sample 512 (181 ms, 113 MiB peak process RSS). The first sampled passing call above 100 ms used 512 (181 ms). The runs did not locate a ceiling for this family.

Days 25–32 · Identities and structures. A few integer parameters, small trees or designs and binomial sums of tens of terms.

Unit benchmark · discrete.binomial, objects. Largest passing sample 10,000 (8.36 ms, 88 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Group actions and probability. Cyclic or dihedral actions on roughly 3–12 positions and a few colors. Counting orbits can avoid materializing all colorings.

Unit benchmark · structures.symmetric.orderStatistics, permuted points. Largest passing sample 7 (73.20 ms, 89.4 MiB peak process RSS). Library refusal at 8. The first sampled passing call above 100 ms used 6 (157 ms).

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Elementary counts

Choose ordered versus unordered models and use complements or bounded sums.

8 direct calculation · 0 assisted · 0 worked by hand

  1. Day 1 Multinomial coefficients
  2. Day 2 Stars and bars
  3. Day 3 Inclusion–exclusion
  4. Day 4 Derangements
  5. Day 5 Binomial coefficients
  6. Day 6 Counting hands
  7. Day 7 Multiplication principle
  8. Day 8 Repeated choices
Days 9–16 Partitions of sets and permutations

Count onto functions, cycles and descents and distinguish their recurrences.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 9 Surjections
  2. Day 10 Stirling and Bell numbers
  3. Day 11 Stirling numbers of the first kind
  4. Day 12 Eulerian numbers
  5. Day 13 Arrangements with repetition
  6. Day 14 Matching problem
  7. Day 15 Double counting edges
  8. Day 16 Bijections
Days 17–24 Integer partitions and series

Count ordered parts, derive recurrences and extract coefficients.

6 direct calculation · 0 assisted · 2 worked by hand

  1. Day 17 Integer partitions
  2. Day 18 Compositions
  3. Day 19 Linear recurrences
  4. Day 20 Jacobsthal numbers
  5. Day 21 Generating functions
  6. Day 22 Linear recurrence
  7. Day 23 Generating a bounded part
  8. Day 24 Boundary conditions
Days 25–32 Identities and structures

Use lattice paths, labelled trees and block designs to build counting arguments.

8 direct calculation · 0 assisted · 0 worked by hand

  1. Day 25 Catalan numbers
  2. Day 26 Vandermonde's identity
  3. Day 27 Labelled trees
  4. Day 28 Steiner triple systems
  5. Day 29 Prüfer codes
  6. Day 30 Counting spanning trees
  7. Day 31 Monotone lattice paths
  8. Day 32 Divisibility in a block design
Days 33–40 Group actions and probability

Count equivalence classes, fixed objects and expected occurrences.

6 direct calculation · 1 assisted · 1 worked by hand

  1. Day 33 Burnside counting
  2. Day 34 Cycle index
  3. Day 35 Burnside's lemma
  4. Day 36 Necklace reflection
  5. Day 37 Birthday problem
  6. Day 38 Hypergeometric
  7. Day 39 A rotation fixes a coloring
  8. Day 40 Linearity of expectation

Start day 1 →