Sequences and Cardinality
Master sequences, summations, and the theory of infinite sets. Learn to compare the sizes of infinite sets and understand the profound distinction between countable and uncountable infinities.
- Understand sequences and their representations
- Apply summation formulas for arithmetic and geometric series
- Solve basic recurrence relations
- Define and compare cardinalities of sets
- Prove sets are countable or uncountable
- Apply Cantor's diagonalization argument
1. Sequences
A sequence is an ordered list of elements. Formally, a sequence is a function from a subset of integers (usually or ) to a set .
We write or to denote a sequence.
- is called the n-th term of the sequence
- The sequence may be finite or infinite
Arithmetic Sequence:
where is the common difference
Example: 2, 5, 8, 11, 14, ... (d = 3)
Geometric Sequence:
where is the common ratio
Example: 3, 6, 12, 24, 48, ... (r = 2)
Fibonacci Sequence:
with
1, 1, 2, 3, 5, 8, 13, 21, ...
A recurrence relation defines each term of a sequence in terms of previous terms.
To fully specify a sequence, a recurrence relation must be paired with initial conditions.
2. Summations
The summation (or sigma notation) represents the sum of terms:
Here is the index of summation, is the lower bound, and is the upper bound.
Sum of first n positive integers:
Sum of squares:
Sum of cubes:
Geometric series:
Let .
Write the sum forwards and backwards:
Adding column by column:
Therefore, .
Problem: Evaluate
Solution:
3. Cardinality of Sets
The cardinality of a set , denoted , is a measure of the "size" of the set.
Two sets and have the same cardinality, written , if there exists a bijection .
A set is countably infinite if it has the same cardinality as .
A set is countable if it is either finite or countably infinite.
The cardinality of is denoted (aleph-null).
The following sets are countably infinite:
- (integers)
- (rational numbers)
- (pairs of natural numbers)
- Any countable union of countable sets
Define by:
This gives the enumeration: 0, -1, 1, -2, 2, -3, 3, ...
Since f is a bijection, .
4. Uncountable Sets
A set is uncountable if it is infinite but not countably infinite (i.e., no bijection with exists).
The set of real numbers is uncountable. In fact, the interval is uncountable.
Assume for contradiction that is countable.
Then we could list all reals in :
...
Construct a new number where for each .
Then differs from every in the i-th digit, so is not in our list.
This contradicts our assumption that all reals were listed. Therefore is uncountable.
For any set , the power set has strictly greater cardinality:
Hierarchy of Infinities:
There are infinitely many different sizes of infinity!
Practice Quiz
Frequently Asked Questions
What's the intuition behind countable vs uncountable?
A set is countable if you can list all its elements in a sequence (1st, 2nd, 3rd, ...), even if the list is infinite.
A set is uncountable if no matter how you try to list elements, you'll always miss some (proven by diagonalization).
Surprisingly, adding more elements (like going from to to ) doesn't make a set uncountable. You need a qualitatively different kind of infinity.
Why is ℚ countable but ℝ uncountable?
is countable because each rational is determined by two integers. We can systematically list all fractions by organizing them in a grid and traversing diagonally.
is uncountable because real numbers have infinite decimal expansions that can't be captured by any listing scheme (Cantor's diagonal argument).
How do I prove a set is countable?
Common strategies:
- Construct an explicit bijection with
- Show it's a subset of a known countable set
- Show it's a countable union of countable sets
- Show it can be listed systematically
What are summation formulas used for?
Summation formulas are essential for:
- Algorithm analysis: Computing time complexity (e.g., nested loops)
- Probability: Expected values and variances
- Combinatorics: Counting arguments
- Mathematical proofs: Especially induction proofs
What's the practical importance of cardinality?
Cardinality theory has deep implications in computer science:
- Computability: Not all functions are computable (there are uncountably many functions but only countably many programs)
- Formal languages: Understanding the power of different computational models
- Cryptography: Security based on computational intractability