RatMath ShelfCourse guide

University: first two years

Discrete mathematics

Use the left and right arrow keys to turn pages.

Course summary

Where RatMath helps

87.5%

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

Direct calculation
33 · 82.5%
Assisted
2 · 5%
Worked by hand
5 · 12.5%

Using the packages

Exact counts and graph algorithms are convenient. Turning language into quantifiers or identifying a bijection is the difficult step, and a finite check cannot establish an inductive claim.

Calculator interface

Switch among set, graph and formula views while preserving the student's labels. Let a proof request record the base case, induction hypothesis and step separately.

Packages used in the lessons

@ratmath/discrete (19 days) · @ratmath/core (6 days) · @ratmath/numtheory (5 days) · @ratmath/logic (3 days) · @ratmath/symbolic (2 days) · @ratmath/structures (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

35 of 40 days include a checked executable example. On 7 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 · Logic and proof. Two to six proposition letters, short proofs and one or two nested quantifiers or induction indices.

Unit benchmark · logic.entails, successive implications. Largest passing sample 128 (20.49 ms, 89.4 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 9–16 · Counting. Finite sets usually under 100 elements when only a count is wanted; listing examples is normally restricted to much smaller sets.

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 17–24 · Recurrences and arithmetic. One- or two-term recurrences, moduli from single digits to hundreds and modest exponents for hand checks.

Unit benchmark · numtheory.modPow, exponent bits. Largest passing sample 8,192 (2.51 ms, 81.1 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 25–32 · Graphs and trees. Graphs with roughly 3–20 vertices and tens of edges; counting paths differs greatly from listing every path.

Unit benchmark · discrete.isBipartite, cycle vertices. Largest passing sample 10,000 (21.70 ms, 92.2 MiB peak process RSS). The runs did not locate a ceiling for this family.

Days 33–40 · Relations and representations. Small finite sets, relations and functions, or asymptotic families described symbolically by one size parameter.

Unit benchmark · logic.countModels, Boolean atoms. Largest passing sample 20 (21.16 ms, 97.1 MiB peak process RSS). Library refusal at 24.

Measurement method, runtime limits and complete workload results

Lecture and problem-set sequence

Days 1–8 Logic and proof

Translate claims, negate quantifiers, construct counterexamples and justify induction.

4 direct calculation · 2 assisted · 2 worked by hand

  1. Day 1 Tautology
  2. Day 2 De Morgan
  3. Day 3 A sum proved by induction
  4. Day 4 Pigeonhole principle
  5. Day 5 Entailment
  6. Day 6 Negating a claim
  7. Day 7 Vacuous truth
  8. Day 8 The induction step
Days 9–16 Counting

Choose ordered or unordered objects, handle repetition and exclude prohibited choices.

8 direct calculation · 0 assisted · 0 worked by hand

  1. Day 9 Inclusion–exclusion
  2. Day 10 Counting hands
  3. Day 11 Arrangements with repetition
  4. Day 12 Stars and bars
  5. Day 13 Derangements
  6. Day 14 Surjections
  7. Day 15 Catalan numbers
  8. Day 16 Complement counting
Days 17–24 Recurrences and arithmetic

Solve recurrences, use Euclid and compute in modular rings.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 17 Linear recurrence
  2. Day 18 Modular exponent
  3. Day 19 Euclid and Bézout
  4. Day 20 Modular inverse
  5. Day 21 Chinese remainder theorem
  6. Day 22 Linear congruence
  7. Day 23 Invariant parity
  8. Day 24 Euclidean remainders
Days 25–32 Graphs and trees

Recognize trails, optimize paths and count spanning trees.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 25 Euler circuits
  2. Day 26 Shortest path
  3. Day 27 Minimum spanning tree
  4. Day 28 Counting trees
  5. Day 29 Handshake lemma
  6. Day 30 Bridges and cut vertices
  7. Day 31 Forest edge counts
  8. Day 32 Bridge versus cycle
Days 33–40 Relations and representations

Work with equivalence, order, number systems and algorithmic growth.

7 direct calculation · 0 assisted · 1 worked by hand

  1. Day 33 Equivalence relations
  2. Day 34 Number bases
  3. Day 35 Bipartite graphs
  4. Day 36 Master theorem
  5. Day 37 Order in Z_n
  6. Day 38 Labelled trees
  7. Day 39 Partial orders
  8. Day 40 Function counting

Start day 1 →