29 - More examples of countable sets

!Screenshot 2023-11-16 at 3.21.25 PM.png
!Screenshot 2023-11-16 at 3.39.14 PM.png!Screenshot 2023-11-16 at 3.39.23 PM.png



HW 29

Ben Finch

E 29.1

Case 1: Both A and B are finite

If both A and B are finite, then there exist natural numbers n and m such that A={a1,a2,,an} and B={b1,b2,,bm}. The union AB will then be the set of all these elements, which is a finite set of size at most n+m. A finite set is by definition countable, so AB (which is equal to AB) is countable.

Case 2: One of A and B is finite and the other is countably infinite.

Without loss of generality, assume that A is finite and B is infinite. Then we can list the elements of A as A={a1,a2,,an} and the elements of B can be listed as B={b1,b2,b3,}. The union AB will be the set of all these elements. Since B is already countably infinite, we can create a new list that includes all elements of A followed by all elements of B. In other words, we can create the list a1,a2,,an,b1,b2,b3,.

Thus if A and B are countable sets, then AB is countable.

E 29.2
We construct a bijective function f:N{0,1}×N. Define it by:

f(n)={(0,m)if n=2m for some mN(1,m)if n=2m1 for some mN

This function assigns every even natural number to an element in the set with the first component 0, and every odd natural number to an element in the set with the first component 1. This function is bijective, so |N|={0,1}×N|. Thus {0,1}×N is countably infinite.

E 29.3
In 29.3, it was proved that if A and B are countably infinite sets, then A×B is also countably infinite. We now prove that if A and B are countable sets, then A×B is as well. There are two remaining cases

One of A or B is finite and the other is countably infinite. Without loss of generality, assume A is finite and B is countably infinite. If A has m elements and B is countably infinite, then each element of A can be paired with all elements of B, resulting in m separate listings of a countably infinite set. This can be visualized as m rows, each corresponding to an element of A, and columns corresponding to elements of B. Since a finite union of countable sets is countable, A×B is countable.

Both A and B are finite. If both sets are finite, with A having m elements and B having n elements, then their Cartesian product will have m×n elements, which is a finite number. Hence, A×B is countable.

Thus if A and B are countable sets, then A×B is as well.

E 29.4

a) Let A1,A2, . . . be arbitrary sets. Let B1=A1, and for each n1 let Bn+1=Bn×An+1. Assume that all of the Ai are countable. We work by induction

Base Case: For n=1, B1=A1 which is given to be countable.

Inductive Step: Assume for some k1 that Bk is countable. We aim to show Bk+1 is countable. We know Bk+1=Bk×Ak+1. Since Bk is countable by the inductive hypothesis, and Ak+1 is countable by assumption, by Theorem 29.3, the Cartesian product of two countable sets is also countable. We can show this by constructing a bijection from N×N to N, like Cantor's grid, and then using this bijection to pair elements from Bk and Ak+1 to the natural numbers.

Hence, by induction, Bn is countable for each nN.

b) Describe a bijective function f:A1×A2×A3(A1×A2)×A3=B3, and prove its bijectivity.

Consider the function f(a1,a2,a3)=((a1,a2),a3).

To show injectivity, assume f(a1,a2,a3)=f(a1,a2,a3). Then ((a1,a2),a3)=((a1,a2),a3). By definition of ordered pairs, this means a1=a1, a2=a2, and a3=a3, so (a1,a2,a3)=(a1,a2,a3).

To show surjectivity, for any element ((a1,a2),a3)B3, there exists an element (a1,a2,a3)A1×A2×A3 such that f(a1,a2,a3)=((a1,a2),a3).

Hence, f is bijective.

(c) Prove that if A1,A2,A3 are countable, then the set A1×A2×A3 is countable.

We already proved in exercise 29.3 that if A and B are countable sets, then A×B is as well. Thus, by extension, we can consider the Cartesian product of A1 and A2, denoted A1×A2, which is countable by this previous result.

Now, since A1×A2 is countable and A3 is countable, we can apply the same reasoning to (A1×A2)×A3. This set is the Cartesian product of two countable sets, and by the result from exercise 29.3, it is also countable.

Hence, A1×A2×A3 is countable.

E 29.5
By Corollary 29.7, Q is countably infinite. By Theorem 29.3, Z×N is countably infinite, since both Z and N are countably infinite. Therefore, |Z×N|=|Q|.

E 29.6
IMG_4298 1.jpg

Review the diagram above. We see that there is a systematic way to list the items in the union with no repeats in a specific order. Thus i=1Ai is countably infinite.

E 29.7
To prove that the set containing all finite sets of N is countably infinite, we will form a bijection between N and this set.

First, list all finite subsets of N, first based on size and then by their least element. For example, start with the empty set, then all single-element subsets, then all two-element subsets, and so on.

We can now represent each element in this set with a natural number using binary form such that the i-th digit is 1 if i is in the subset and 0 otherwise. For example, the set {1, 3} can be represented by the binary number 101. Then we can convert that binary number (base 2) to a natural number in base 10 (the example of 101 being 5).

So, we have mapped each finite subset with a unique natural number and vice versa. This establishes a bijection between the set of all finite subsets of N and N itself. Therefore, this set and N have the same cardinality.

Hence, the set containing all finite sets of N is countably infinite.