Skip to main content
Mathematics LibreTexts

9.4: Countable Sets

  • Page ID
    95463
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Recall that if \(A=\emptyset\), then we say that \(A\) has cardinality 0. Also, if \(card(A)=card([n])\) for \(n\in\mathbb{N}\), then we say that \(A\) has cardinality \(n\). We have a special way of describing sets that are in bijection with the natural numbers.

    Definition 9.36. If \(A\) is a set such that \(card(A)=card(\mathbb{N})\), then we say that \(A\) is denumerable and has cardinality \(\mathbf{\aleph_0}\) (read “aleph naught").

    Notice if a set \(A\) has cardinality \(1,2,\ldots\), or \(\aleph_0\), we can label the elements in \(A\) as “first", “second", and so on. That is, we can “count" the elements in these situations. Certainly, if a set has cardinality 0, counting is not an issue. This idea leads to the following definition.

    Definition 9.37. A set \(A\) is called countable if \(A\) is finite or denumerable. A set is called uncountable if it is not countable.

    Problem 9.38. Quickly justify that each of the following sets is countable. Feel free to appeal to previous problems. Which sets are denumerable?

    1. \(\{a,b,c\}\)
    2. Set of odd natural numbers
    3. Set of even natural numbers
    4. \(\{\frac{1}{2^n}\mid n\in \mathbb{N}\}\)
    5. Set of perfect squares in \(\mathbb{N}\)
    6. \(\mathbb{Z}\)
    7. \(\mathbb{N}\times \{a\}\)

    Utilize Theorem 9.31 or Corollary 9.33 when proving the next result.

    Theorem 9.39. Every infinite set contains a denumerable subset.

    Theorem 9.40. Let \(A\) and \(B\) be sets such that \(A\) is countable. If \(f:A\to B\) is a bijection, then \(B\) is countable.

    For the next proof, consider the cases when \(A\) is finite versus infinite. The contrapositive of Corollary 9.32 should be useful for the case when \(A\) is finite.

    Theorem 9.41. Every subset of a countable set is countable.

    Theorem 9.42. A set is countable if and only if it has the same cardinality of some subset of the natural numbers.

    Theorem 9.43. If \(f:\mathbb{N}\to A\) is a surjective function, then \(A\) is countable.

    Loosely speaking, the next theorem tells us that we can arrange all of the rational numbers then count them “first", “second", “third", etc. Given the fact that between any two distinct rational numbers on the number line, there are an infinite number of other rational numbers (justified by taking repeated midpoints), this may seem counterintuitive.

    Here is one possible approach for proving the next theorem. Make a table with column headings \(0, 1, -1, 2,-2,\ldots\) and row headings \(1,2,3,4,5,\ldots\). If a column has heading \(m\) and a row has heading \(n\), then the entry in the table corresponds to the fraction \(m/n\). Find a way to zig-zag through the table making sure to hit every entry in the table (not including column and row headings) exactly once. This justifies that there is a bijection between \(\mathbb{N}\) and the entries in the table. Do you see why? But now notice that every rational number appears an infinite number of times in the table. Resolve this by appealing to Theorem 9.41.

    Theorem 9.44. The set of rational numbers \(\mathbb{Q}\) is countable.

    Theorem 9.45. If \(A\) and \(B\) are countable sets, then \(A\cup B\) is countable.

    We would like to prove a stronger result than the previous theorem. To do so, we need an intermediate result.

    Theorem 9.46. Let \(\{A_n\}_{n=1}^{\infty}\) be a collection of sets. Define \(B_1:= A_1\) and for each natural number \(n>1\), define \[B_n:= A_n\setminus \bigcup_{i=1}^{n-1}A_i.\] Then we we have the following:

    1. The collection \(\{B_n\}_{n=1}^{\infty}\) is pairwise disjoint.
    2. \(\displaystyle \bigcup_{n=1}^{\infty}A_n =\bigcup_{n=1}^{\infty}B_n\).

    The next theorem states that the union of a countable collection of countable sets is countable. To prove this, consider two cases:

    1. The collection of sets is finite.
    2. The collection of sets is infinite.

    To handle the first case, use induction together with Theorem 9.45. The second case is substantially more challenging. First, use Theorem 9.46 to construct a collection \(\{B_n\}\) of pairwise disjoint sets whose union is equal to the union of the original collection. Since each \(B_n\) is a subset of one of the sets in the original collection and each of these sets is countable, each \(B_n\) is also countable by Theorem 9.41. This implies that for each \(n\), we can write \(B_n=\{b_{n,1}, b_{n,2},b_{n,3},\ldots\}\), where the set may be finite or infinite. From here, we outline two different approaches for continuing. One approach is to construct a bijection from \(\mathbb{N}\) to \(\bigcup_{n=1}^{\infty}B_n\) using Figure 9.2 as inspiration. One thing you will need to address is what to do when a set in the collection \(\{B_n\}\) is finite. For the second approach, define \(f:\bigcup_{n=1}^{\infty}B_n\to \mathbb{N}\) via \(f(b_{n,m})=2^n3^m\), verify that this function is injective, and then appeal to Theorem 9.41. Try using both of these approaches when tackling the proof of the following theorem.

    = [circle, draw, fill=black,inner sep=0pt, minimum size=.7mm]

    Theorem 9.47. Let \(\Delta\) be equal to either \(\mathbb{N}\) or \([k]\) for some \(k\in\mathbb{N}\). If \(\{A_n\}_{n\in\Delta}\) is a countable collection of sets such that each \(A_n\) is countable, then \(\bigcup_{n\in \Delta}A_n\) is countable.

    Do you use the Axiom of Choice when proving the previous theorem? If so, where?

    Theorem 9.48. If \(A\) and \(B\) are countable sets, then \(A\times B\) is countable.

    Theorem 9.49. The set of all finite sequences of 0’s and 1’s (e.g., \(0110010\) is a finite sequence consisting of 0’s and 1’) is countable.

    9.2.png
    Figure 9.2: Inspiration for one possible approach to proving Theorem 9.47.

    Theorem 9.50. The collection of all finite subsets of a countable set is countable.


    This page titled 9.4: Countable Sets is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Dana Ernst via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?