Steply

Discrete Math formula sheet

12 formulas · what each one means · a free lesson for each

All formula sheets

steplyclass.com/formula-sheets/discrete-math/ · free, step-by-step lessons for every formula

Logic

Implication
p → q is false only when p is true and q is false
Lesson: Truth tables →
De Morgan's laws
¬(p ∧ q) ≡ ¬p ∨ ¬q ¬(p ∨ q) ≡ ¬p ∧ ¬q
Lesson: Equivalent statements →
Implication as or
p → q ≡ ¬p ∨ q
Lesson: Equivalent statements →
Contrapositive
p → q ≡ ¬q → ¬p
Lesson: Proof by contrapositive →
Negating quantifiers
¬∀x P(x) ≡ ∃x ¬P(x) ¬∃x P(x) ≡ ∀x ¬P(x)
Lesson: Negating with quantifiers →
Induction
true for n = 1, and true for k → true for k + 1
Lesson: Proof by induction →

Numbers and recurrences

Congruence
a ≡ b (mod n) ⇔ n divides a − b
Same remainder when divided by n.Lesson: Remainders →
Mod of a product
ab mod n = (a mod n)(b mod n) mod n
Work with the remainders, keep the numbers small.Lesson: Powers mod n, last digits →
Euclid's algorithm
gcd(a, b) = gcd(b, a mod b)
Lesson: Euclid's algorithm →
First-order recurrence
an = r an−1 → an = a0 rn
Lesson: Solving recurrences →
Second-order recurrence
an = c1 an−1 + c2 an−2 → r2 = c1 r + c2
Lesson: Second-order recurrences →
Euler path
0 or 2 odd vertices
0 odd: an Euler circuit; 2 odd: start at one, end at the other.Lesson: Euler paths →

More formula sheets