Countable Sets
Countable Sets
This handout summarizes some of the most important results about countable sets. Many of these
are proved either in the textbook or in its exercises, but I want to bring these properties together
in a way that shows their similarity with properties of finite sets.
Proof. We’ll prove this by induction on n. When n = 1, we have N × N1 = N × {1}, and it follows
from Exercise 2 on page 460 that this set is equivalent to N.
For the inductive step, let k ∈ N and assume that N × Nk is countably infinite. Note that
N × Nk+1 = (N × Nk ) ∪ (N × {k + 1}),
and the sets on the right-hand side are disjoint because no element of the first set has k + 1 as its
second coordinate, while every element of the second set does. The first set is countably infinite
by the inductive hypothesis, and the second by Exercise 2 on page 460. Therefore, N × Nk+1 is a
union of two disjoint countably infinite sets, so it follows from Theorem 9.17 that it is countably
infinite.
Lemma 2. Every natural number can be expressed in the form n = 2p q, where p is a nonnegative
integer and q is an odd natural number.
Proof. We will prove this by strong induction. For the base case n = 1, just note that n = 20 · 1.
Now let k ∈ N, and suppose that every natural number less than k can be written in the desired
form. If k is odd, we just write k = 20 k. If k is even, then there is an integer l such that k = 2l,
and l is positive because k is. Since l < k, the inductive hypothesis implies that there exist a
nonnegative integer p and an odd natural number q such that l = 2p q, and then k = 2l = 2p+1 q,
which satisfies the conclusion.
Proof. (This is Exercise 9 on page 474 of the text.) Define a function f : N × N → N by f (m, n) =
2m−1 (2n − 1). To show that f is injective, suppose (m1 , n1 ), (m2 , n2 ) are elements of N × N such
that f (m1 , n1 ) = f (m2 , n2 ), which is to say
We will first prove by contradiction that m1 = m2 . Suppose not; then one is larger, and we may
assume without loss of generality that m2 > m1 . Multiplying both sides of (1) by 21−m1 , we obtain
The fact that m2 > m1 implies that the right-hand side is even, while the left-hand side is odd;
this is a contradiction, so we can conclude that m1 = m2 . Then simple algebra shows that n1 = n2
as well, so (m1 , n1 ) = (m2 , n2 ).
To prove surjectivity, let x ∈ N be arbitrary. Lemma 2 shows that we can write x = 2p q for some
nonnegative integer p and some odd natural number q. The fact that q is odd means that q = 2j +1
for some integer j, and the fact that q ≥ 1 means j ≥ 0. Therefore, (p + 1, j + 1) ∈ N × N, and
Theorem 4 (Fundamental Properties of Countable Sets). Suppose A and B are countable sets.
(b) A ∪ B is countable.
(c) A × B is countable.
Proof. Part (a) is Corollary 9.20 in the textbook. For the proof of part (b), see Exercise 1 at the
end of this handout.
Here is a proof of (c). If A or B is empty, then A × B is empty, so we may assume both are
nonempty. If A and B are both finite, then A × B is finite by Theorem 3 on the finite sets handout,
and thus it is countable.
Next, suppose A is countably infinite and B is finite; thus A ≈ N and B ≈ Nn for some n. It follows
from Exercise 7(a) on page 460 that A × B ≈ N × Nn , which is countably infinite by Lemma 1
above. On the other hand, if A is finite and B is countably infinite, the preceding argument shows
that B × A is countably infinite; the function g(a, b) = (b, a) is a bijection from A × B to B × A,
so A × B is countably infinite also.
Finally, if A and B are both countably infinite, then Exercise 7(a) on page 460 shows that A × B ≈
N × N, which is countably infinite by Lemma 3 above.
Just as for finite sets, we have the following shortcuts for determining that a set is countable.
Proof. First we prove (a). Suppose B is countable and there exists an injection f : A → B. Just
as in the proof of Theorem 4 on the finite sets handout, we can define a bijection f ′ : A → f (A) by
setting f ′ (x) = f (x) for every x ∈ A. Since f (A) is a subset of the countable set B, it is countable,
and therefore so is A.
Now to prove part (b), suppose B is countable and there exists a surjection f : B → A. First
consider the case in which B = N. Using the same argument as in Exercise 9 on page 461 of the
textbook, we can construct an injective function g : A → N by letting g(a) be the smallest element
of the set f −1 ({a}). It follows that A is countable by the result in part (a).
Now suppose B is an arbitrary countable set and there exists a surjection f : B → A. The fact that
A is nonempty guarantees that B is also nonempty. If B is finite, then it follows from Theorem 4 on
the finite sets handout that A is finite, and hence countable. On the other hand, if B is countably
infinite, there exists a bijection g : N → B. Then f ◦ g : N → A is a composition of surjections and
hence surjective, so the argument in the preceding paragraph shows that A is countable.
The textbook sketched an argument that the set of positive rational numbers is countably infinite
(see Theorem 9.14). That argument is intuitively appealing, but it is notoriously hard to make
precise, because there is no good formula for the bijection being described from N to Q+ . Here is
a proof that is perhaps less intuitive, but much more straightforwardly rigorous.
Proof. Because Q+ contains the natural numbers, it is infinite, so we need only show it is countable.
Define g : N × N → Q+ by g(m, n) = m/n. Since every positive rational number can be written as
a quotient of positive integers, g is surjective. Since N × N is countable, it follows from Theorem
5(b) above that Q+ is countable.
Exercise
1. Prove part (b) of Theorem 4. [Hint: Use Theorems 9.16 and 9.17 in the textbook, and argue
as you did in Exercise 1 on the finite sets handout.]