Table of Contents
¶Union of Finite Countable Sets
It is straight forward to show that the union of two countable set is countable.
Let and
be two countable infinite sets(in case when either is finite the proof trivial), that is,
and
such that and
are bijections,
then the set is also countable meaning that
so that
is a bijection.
To construct such a map all the elements in
to all the all the even naturals and all the elements in
to the even naturals, so
let and
Such a map is surjective because we cover all cases modulo and hence all the integers, and this map is injective because
is injective on all
’s and
’s separately.
Either using induction or using a similar argument with the naturals modulo for any finite
we can show that the union of any
countable sets is also countable
.
¶Larger Unions?
We know that an arbitrary union of countable sets is not necessarily countable.
Consider as a counterexample the union of all singletons , this is
itself which we know not to be countable.
It turns out that a countable union of countable sets is countable, to show this we cannot use a induction or a modulo argument.
The key idea in the modulo k argument is that there are equivalence classes and hence we can break the Naturals into
infinite countable sequences(countable infinite sets), but can we break the naturals into infinitely many infinite sub-sequences? - Yes.
The first time I encountered this it was supposed to be justified was by observing that the Naturals can be arranged into the following two dimensional array,

Although this is convincing, a thought process that would lead me to come up with this eluded me until now, I explain this thought process below.
¶The Argument
In the modulo argument we have a constant gap between each consecutive element of a sequence, because of this we are limited by the gap size(
). So the key idea is constructing such a partitioning of the Naturals is to keep increasing the gap size, but since the gap size is finite at any point we can only have elements from a finite number of the countably infinite sub-sequences at any particular, so we are forced to start subsequent sub-sequences at larger and larger points.
The most simple way to increase the gap size in this way is to keep increasing it by one after each gap.
Look at the sequence we just get the Triangular numbers and zero.
For elements of the first sequence we get the fill all places immediately after all Triangular numbers starting from the first Triangular number.
For elements of the second sequence we get the fill all places one place after all Triangular numbers starting from the second triangular number.
So we come up with the function that maps the
element of the
sub-sequence.
This is equivalent to the 2D array I mentioned earlier.
for m in range(0,5): row = f" S_{m} = " for n in range(0,5): s = m + n row += (str(m + int(s*(s+1)/2)) + ' , ') print(row + ' ... \n') print('.\n.\n.\n')
S_0 = 0 , 1 , 3 , 6 , 10 , ... S_1 = 2 , 4 , 7 , 11 , 16 , ... S_2 = 5 , 8 , 12 , 17 , 23 , ... S_3 = 9 , 13 , 18 , 24 , 31 , ... S_4 = 14 , 19 , 25 , 32 , 40 , ... . . .
Now we just have to show that is bijective.
Claim 1: If then
This equivalent to showing that if then
.
Without loss of generality let us assume .
Let and
since
the difference of there triangular numbers
and
is atleast
because
.
Then
So
Similarly we can show that if then
Now we show injectivity using Claim 1
If then by Claim 1
Let and
in this case Let
So,
Now we show surjectivity
Let
let be the largest triangular number less than
.
Let
Let
Then
Since is both injective and surjective, it is a bijection, we are done.
¶An Interesting Application
The set of finite subsets of is countable.
Let be set of all subsets of
containing
elements, that is with cardinality
.
is just the set of all singletons of
, there is an obvious bijection of this with
, the identity map - hence it is countable.
Now we just use induction,
Let be countable, then
is a countable union of countable sets.
Since all all ’s are countable the set of all finite subsets
being a countable union of countables is also countable.