MathIsimple
DM-05
Course 5

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.

Learning Objectives
  • 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

Definition 5.1: Sequence

A sequence is an ordered list of elements. Formally, a sequence is a function from a subset of integers (usually N\mathbb{N} or Z+\mathbb{Z}^+) to a set SS.

We write {an}\{a_n\} or a1,a2,a3,a_1, a_2, a_3, \ldots to denote a sequence.

  • ana_n is called the n-th term of the sequence
  • The sequence may be finite or infinite
Example: Common Sequences

Arithmetic Sequence:

an=a1+(n1)da_n = a_1 + (n-1)d where dd is the common difference

Example: 2, 5, 8, 11, 14, ... (d = 3)

Geometric Sequence:

an=a1rn1a_n = a_1 \cdot r^{n-1} where rr is the common ratio

Example: 3, 6, 12, 24, 48, ... (r = 2)

Fibonacci Sequence:

Fn=Fn1+Fn2F_n = F_{n-1} + F_{n-2} with F1=F2=1F_1 = F_2 = 1

1, 1, 2, 3, 5, 8, 13, 21, ...

Definition 5.2: Recurrence Relation

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

Definition 5.3: Summation Notation

The summation (or sigma notation) represents the sum of terms:

i=mnai=am+am+1++an\sum_{i=m}^{n} a_i = a_m + a_{m+1} + \cdots + a_n

Here ii is the index of summation, mm is the lower bound, and nn is the upper bound.

Theorem 5.1: Summation Formulas

Sum of first n positive integers:

i=1ni=n(n+1)2\sum_{i=1}^{n} i = \frac{n(n+1)}{2}

Sum of squares:

i=1ni2=n(n+1)(2n+1)6\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}

Sum of cubes:

i=1ni3=(n(n+1)2)2\sum_{i=1}^{n} i^3 = \left(\frac{n(n+1)}{2}\right)^2

Geometric series:

i=0nri=rn+11r1 for r1\sum_{i=0}^{n} r^i = \frac{r^{n+1} - 1}{r - 1} \text{ for } r \neq 1
Proof of Sum of first n integers

Let S=1+2++nS = 1 + 2 + \cdots + n.

Write the sum forwards and backwards:

S=1+2+3++nS = 1 + 2 + 3 + \cdots + n

S=n+(n1)+(n2)++1S = n + (n-1) + (n-2) + \cdots + 1

Adding column by column:

2S=(n+1)+(n+1)++(n+1)=n(n+1)2S = (n+1) + (n+1) + \cdots + (n+1) = n(n+1)

Therefore, S=n(n+1)2S = \frac{n(n+1)}{2}.

Example: Evaluating Sums

Problem: Evaluate i=1100i\sum_{i=1}^{100} i

Solution:

i=1100i=1001012=101002=5050\sum_{i=1}^{100} i = \frac{100 \cdot 101}{2} = \frac{10100}{2} = 5050

3. Cardinality of Sets

Definition 5.4: Cardinality

The cardinality of a set AA, denoted A| A |, is a measure of the "size" of the set.

Two sets AA and BB have the same cardinality, written A=B|A| = |B|, if there exists a bijection f:ABf: A \to B.

Definition 5.5: Countable Sets

A set is countably infinite if it has the same cardinality as N\mathbb{N}.

A set is countable if it is either finite or countably infinite.

The cardinality of N\mathbb{N} is denoted 0\aleph_0 (aleph-null).

Theorem 5.2: Countable Sets

The following sets are countably infinite:

  • Z\mathbb{Z} (integers)
  • Q\mathbb{Q} (rational numbers)
  • N×N\mathbb{N} \times \mathbb{N} (pairs of natural numbers)
  • Any countable union of countable sets
Proof of ℤ is countable

Define f:NZf: \mathbb{N} \to \mathbb{Z} by:

f(n)={n/2if n is even(n+1)/2if n is oddf(n) = \begin{cases} n/2 & \text{if } n \text{ is even} \\ -(n+1)/2 & \text{if } n \text{ is odd} \end{cases}

This gives the enumeration: 0, -1, 1, -2, 2, -3, 3, ...

Since f is a bijection, N=Z| \mathbb{N} | = | \mathbb{Z} |.

4. Uncountable Sets

Definition 5.6: Uncountable

A set is uncountable if it is infinite but not countably infinite (i.e., no bijection with N\mathbb{N} exists).

Theorem 5.3: Cantor's Theorem

The set of real numbers R\mathbb{R} is uncountable. In fact, the interval (0,1)(0, 1) is uncountable.

Proof of Cantor's Diagonalization

Assume for contradiction that (0,1)(0, 1) is countable.

Then we could list all reals in (0,1)(0, 1):

r1=0.d11d12d13d14r_1 = 0.d_{11}d_{12}d_{13}d_{14}\ldots

r2=0.d21d22d23d24r_2 = 0.d_{21}d_{22}d_{23}d_{24}\ldots

r3=0.d31d32d33d34r_3 = 0.d_{31}d_{32}d_{33}d_{34}\ldots

...

Construct a new number x=0.x1x2x3...x = 0.x_1x_2x_3... where xidiix_i \neq d_{ii} for each ii.

Then xx differs from every rir_i in the i-th digit, so xx is not in our list.

This contradicts our assumption that all reals were listed. Therefore (0,1)(0, 1) is uncountable.

Theorem 5.4: Power Set Cardinality

For any set AA, the power set P(A)\mathcal{P}(A) has strictly greater cardinality:

P(A)=2A>A|\mathcal{P}(A)| = 2^{|A|} > |A|
Remark

Hierarchy of Infinities:

0=N<20=R<220<\aleph_0 = |\mathbb{N}| < 2^{\aleph_0} = |\mathbb{R}| < 2^{2^{\aleph_0}} < \cdots

There are infinitely many different sizes of infinity!

Practice Quiz

Sequences and Cardinality Quiz
10
Questions
0
Correct
0%
Accuracy
1
What is the closed form of i=1ni\sum_{i=1}^{n} i?
Easy
Not attempted
2
Which set has the same cardinality as N\mathbb{N}?
Medium
Not attempted
3
A set is countable if:
Easy
Not attempted
4
The geometric series i=0nri\sum_{i=0}^{n} r^i equals:
Medium
Not attempted
5
Cantor's diagonalization proves that:
Medium
Not attempted
6
If an=2an1a_n = 2a_{n-1} with a0=3a_0 = 3, what is ana_n?
Medium
Not attempted
7
The cardinality of P(N)\mathcal{P}(\mathbb{N}) is:
Hard
Not attempted
8
What is i=1ni2\sum_{i=1}^{n} i^2?
Hard
Not attempted
9
Two sets have the same cardinality if:
Easy
Not attempted
10
Which of the following is countably infinite?
Hard
Not attempted

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 N\mathbb{N} to Z\mathbb{Z} to Q\mathbb{Q}) doesn't make a set uncountable. You need a qualitatively different kind of infinity.

Why is ℚ countable but ℝ uncountable?

Q\mathbb{Q} is countable because each rational p/qp/q is determined by two integers. We can systematically list all fractions by organizing them in a grid and traversing diagonally.

R\mathbb{R} 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 N\mathbb{N}
  • 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