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
Mathematics1 course

Discrete Math

Logic, sets, induction, number theory and graphs.

About Discrete Math

Discrete mathematics studies structures made of separate pieces rather than smooth quantities: integers, sets, logical statements, graphs and finite counts. It is the mathematical language of computer science, used to reason about algorithms, networks, databases and cryptography.

The course is also where proof becomes central. Direct proof, proof by contradiction and mathematical induction are practised on concrete statements such as 1+2+⋯+n=n(n+1)21 + 2 + \dots + n = \frac{n(n + 1)}{2}. Modular arithmetic, the remainder arithmetic behind clocks and checksums, leads to the number theory used in modern encryption.

Programmers use these ideas daily: boolean logic in every condition, counting arguments to estimate how many cases a program must handle, graphs to model networks and maps, and modular arithmetic in hashing and encryption. Interviews for software roles regularly draw on this material.

Discrete Mathematics

The mathematics behind computer science. (College)

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.

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.

Full Discrete Mathematics course outline

How to study Discrete Math

  • Test a claim on small cases (n = 1, 2, 3) before trying to prove it.
  • In induction, write the inductive hypothesis explicitly and point to the line where you use it.
  • Translate logic statements into plain English and back again; negations of "for all" and "there exists" trip many students.
  • Draw graphs and Venn diagrams; most counting arguments become clearer as pictures.
Before you start
Algebra and some comfort with formal reasoning. You do not need calculus; what matters more is patience with precise definitions and willingness to check small examples.
Where it leads
Algorithms and data structures, or further proof-based mathematics.

Key terms in Discrete Math

Proposition
A statement that is either true or false. Connectives such as and, or, not and implies build compound propositions.
Set
An unordered collection of distinct objects. Union, intersection and complement combine sets, and Venn diagrams show the overlaps.
Induction
A proof method: show a base case, then show that truth for nn forces truth for n+1n+1, so the claim holds for every nn from the base on.
Permutation
An ordered arrangement. The number of ways to order rr of nn distinct items is n!(n−r)!\tfrac{n!}{(n-r)!}.
Graph
A set of vertices joined by edges, used to model networks. The degree of a vertex is the number of edges meeting it.
Modular arithmetic
Arithmetic with remainders, written a≡b(modn)a \equiv b \pmod n when nn divides a−ba - b; clock time is arithmetic mod 12.

More in Mathematics