The Timpson Lyceum · Discrete Math (2025)
Factorial, Sets, and Quantifiers - Lecture 5 (Discrete Math)
Factorial, Sets, and Quantifiers – Lecture 5
Overview
This lecture pulls together the counting tools from the previous week and builds the foundational language of set theory and logic. It introduces factorials and falling factorials as ways to count arrangements, then compact notation for long sums and products (sigma and pi). From there it develops sets — membership, equality, cardinality, subsets, set-builder notation, and the power set — and practices writing rigorous proofs of set equality. It closes with quantifiers (existential and universal), how to read nested quantifier statements, and the mechanical rules for negating them.
Key Concepts
Counting choices (with vs. without repeats)
- Making choices from options with repeats: .
- Making choices from options without repeats: the falling factorial — multiply terms, decrementing by one each time.
- On a test, leave such an answer as the unevaluated product (e.g. ). The product shows your reasoning; a single huge number hides any arithmetic slip.
Factorial
- (" factorial") for a natural number . It equals the falling factorial .
- Example: .
- Interpretation: counts the number of ways to arrange distinct objects in an ordered list.
- : there is exactly one way to arrange zero objects (the empty arrangement), not zero ways.
Summation notation (sigma)
- means start the dummy variable at the lower bound, substitute each integer up to the upper bound , and add all the results.
- Example: .
- The notation lets you write very long sums compactly, e.g. is all even integers from to .
Product notation (pi)
- works exactly like a sum but multiplies the terms. Capital pi replaces capital sigma.
- .
- Empty product / empty sum: and an empty sum . These are the multiplicative and additive identities — splitting a big product/sum into groups, a group with no terms must contribute the identity so the total is unchanged.
Sets
- A set is an unordered, unique collection: order doesn't matter and repeated elements don't matter.
- Notation: list elements separated by commas inside curly braces, e.g. — this set has four elements ( counts as a single object).
- has only two elements; duplicates collapse.
- Membership: means is a set and is one of its elements; means it is not. Caution: and are different objects, so while .
Set equality, cardinality, finiteness
- Equality: if and only if every element of is in and every element of is in .
- Cardinality is the number of distinct elements in . E.g. .
- A set is finite if its cardinality is an integer; otherwise it is infinite. The naturals are infinite (, and is not an integer).
- is the integers; is the natural numbers.
Set-builder notation
- Form: — a dummy variable, a colon read as "such that," then a predicate (a condition that is true or false). is in the set exactly when is true.
- Evens: , often shortened to . (List membership in the base set first so the divisibility condition makes sense.)
- Odds: .
- Perfect squares: .
Subsets and the power set
- ("subset") means every element of is also in . The symbol has a line underneath, allowing equality; a proper subset forbids equality.
- Every set is a subset of itself: .
- Don't confuse with : is true, but is false (its elements are not in the right-hand set).
- The empty set is the set with no elements.
- Counting subsets: a set with elements has subsets. For each element you make an independent yes/no choice of whether to include it.
- The power set is the set of all subsets of , so .
Quantifiers
- Existential ("there exists" / "some"), always followed by "such that": .
- Universal ("for all" / "for every"): .
- Repeated same-set quantifiers may be combined: becomes .
- Order matters. is false (no single works for every ), but is true.
- Negation rules — push the negation inward and flip the quantifier:
"Not all swans are white" becomes "there exists a swan that is not white."
Worked Example
Claim: The set of even integers equals the set of integers expressible as a sum of two odds, .
Prove set equality by showing both inclusions: and .
() Take any . Being even means for some integer . Rewrite it as a sum of two odds:
Both summands are odd, so . (Concretely, .)
() Take any , so with odd. Then and for integers :
Since is an integer, is two times an integer, hence even, so . (Concretely, .)
Both inclusions hold, therefore .
Summary
- Count choices from options as with repeats and as the falling factorial without; counts the arrangements of objects, and .
- (sigma) and (pi) compactly write long sums and products; the empty sum is and the empty product is .
- A set is an unordered collection of unique elements; equality requires mutual inclusion, is its element count, and set-builder notation describes infinite sets via a predicate.
- A set of elements has subsets, collected in the power set with .
- Prove two sets equal by showing each is a subset of the other, supplying a general procedure that works for any chosen element.
- Read as "there exists … such that" and as "for all"; quantifier order changes meaning, and negating flips while negating the inner predicate.