Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem
Discrete MathCollege2 topic explainers

Discrete Mathematics course

The mathematics behind computer science.

Topics in this course

  1. 1.Logic and Sets

    Logic studies statements that are either true or false and how connectives combine them: and (∧\land), or (∨\lor), not (¬\neg) and if-then (→\to). Truth tables list every case. An implication p→qp \to q is false only when pp is true and qq is false, and it is logically equivalent to its contrapositive ¬q→¬p\neg q \to \neg p, but not to its converse q→pq \to p.

    • Contrapositive is equivalent; converse and inverse are not.
    • De Morgan: negating flips and/or (or ∩\cap/∪\cup) and negates each part.
    • Inclusion-exclusion: ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B| = |A| + |B| - |A \cap B|.
    Quick check: How many subsets does a 5-element set have?

    3232

    Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study logic and sets

  2. 2.Mathematical Induction

    Mathematical induction proves that a statement P(n)P(n) holds for every whole number n≥n0n \ge n_0. It works like dominoes: show the first case is true (the base case), then show that whenever one case is true, the next one must be too (the inductive step). Together these push the truth through every integer.

    • State P(n)P(n) clearly before starting.
    • Base case: verify P(n0)P(n_0) directly.
    • Inductive step: assume P(k)P(k), then prove P(k+1)P(k + 1) using it.
    Quick check: Use the formula to compute 1+2+⋯+1001 + 2 + \cdots + 100.

    50505050

    Includes a worked example, 3 common mistakes and 3 practice questions with answers. Study mathematical induction

Also part of this course

These topics belong to the course outline. Full explainers for them have not been written yet, so they are summarised here rather than given pages of their own.

Number Theory
Divisibility, primes, GCD and modular arithmetic.
Graph Theory
Vertices, edges, degree, paths and trees.

Where to go next