Countable set: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Peter Schmitt
imported>Peter Schmitt
Line 17: Line 17:


=== Perfect squares ===
=== Perfect squares ===
The set of perfect squares is countably infinite, as the following correspondence shows:
: <math> n \leftrightarrow n^2 </math>
{| class="wikitable" style="text-align:center"
|-
|''n''            || 0 || 1 || 2 || 3 || 4  ||  5 || <math>\cdots</math>
|-
|''n''<sup>2</sup>|| 0 || 1 || 4 || 9 || 16 || 25 || <math>\cdots</math>
|-
|}
This is an example of a proper subset of an infinite set that has as many elements as the set,
a situation addressed by [[Galileo's paradox]].


=== Integers ===
=== Integers ===


The set of [[integer]]s is countable (countably infinite). Indeed, the function
The set of [[integer]]s is countably infinite. Indeed, the function
: <math> f(n) = (-1)^n\cdot \left\lfloor \frac{n+1}{2}\right\rfloor </math>
: <math> f(n) = (-1)^n\cdot \left\lfloor \frac{n+1}{2}\right\rfloor </math>
is a one-to-one correspondence between all natural numbers and all integers:  
is a one-to-one correspondence between all natural numbers and all integers:  
Line 26: Line 40:
{| class="wikitable" style="text-align:center"
{| class="wikitable" style="text-align:center"
|-
|-
|''n'' || 0 || 1 || 2 || 3 || 4 || 5 || <math>\cdots </math>
|''n''       || 0 || 1 || 2 || 3 || 4 || 5 || <math>\cdots</math>
|-
|-  
|''f''(''n'')|| 0 || -1 || 1 || -2   || 2 || -3 || <math>\cdots</math>
|''f''(''n'')|| 0 || -1 || 1 || -2 || 2 || -3 || <math>\cdots</math>
|-
|-
|}
|}
Line 44: Line 58:
: <math> A = \{a_0, a_1, a_2, \ldots \} </math> and <math> B = \{b_0, b_1, \ldots \} </math>  
: <math> A = \{a_0, a_1, a_2, \ldots \} </math> and <math> B = \{b_0, b_1, \ldots \} </math>  
then
then
: <math> i \mapsto \begin{cases} a_{i/2}, & i \mbox{ is even} \\ b_{(i-1)/2}, & i \mbox{ is odd} \end{cases} </math>
: <math> i \leftrightarrow \begin{cases} a_{i/2}, & i \mbox{ is even} \\ b_{(i-1)/2}, & i \mbox{ is odd} \end{cases} </math>
is a one-to-one correspondence between <math> \mathbb N </math> and <math> A \cup B </math>.
is a one-to-one correspondence between <math> \mathbb N </math> and <math> A \cup B </math>.
<br>
<br>
Line 50: Line 64:
Let ''A'' be the positive integers and ''B'' be the negative integers.)
Let ''A'' be the positive integers and ''B'' be the negative integers.)
<br>
<br>
This situation is addressed in the example of [[Hilbert's hotel]].
This situation is illustrated by [[Hilbert's hotel]].


=== Rational numbers ===
=== Rational numbers ===

Revision as of 04:57, 13 June 2009

This article has a Citable Version.
Main Article
Discussion
Related Articles  [?]
Bibliography  [?]
External Links  [?]
Citable Version  [?]
 
This editable Main Article has an approved citable version (see its Citable Version subpage). While we have done conscientious work, we cannot guarantee that this Main Article, or its citable version, is wholly free of mistakes. By helping to improve this editable Main Article, you will help the process of generating a new, improved citable version.

In mathematics, a set is said to be countable if its elements can be "numbered" using the natural numbers. More precisely, this means that there exists a one-to-one mapping from set to the set of natural numbers.

A countable set is either finite or countably infinite. A set which is not countable is called uncountable.

Any subset of a countable set is countable.
The image of a countable set (under any function) is a countable set.
The countable union (i.e., the union of a countable family) of countable sets is countable.
The Cartesian product of finitely many countable sets is countable.

Examples of countably infinite sets

Perfect squares

The set of perfect squares is countably infinite, as the following correspondence shows:

n 0 1 2 3 4 5
n2 0 1 4 9 16 25

This is an example of a proper subset of an infinite set that has as many elements as the set, a situation addressed by Galileo's paradox.

Integers

The set of integers is countably infinite. Indeed, the function

is a one-to-one correspondence between all natural numbers and all integers:

n 0 1 2 3 4 5
f(n) 0 -1 1 -2 2 -3

Union of two countable sets

The union of the set of natural numbers and any finite set is countable. For instance, given the finite set

of n elements, the function

shows that is countable.

More generally, consider two countably infinite sets:

and

then

is a one-to-one correspondence between and .
(Note that in the example of the integers the same method has been used: Let A be the positive integers and B be the negative integers.)
This situation is illustrated by Hilbert's hotel.

Rational numbers

In fact, the union of an enumerable number of enumerable sets is still enumerable. Suppose we have a collection of sets . Then we can create a bijection between the whole numbers and all the elements of all the as follows:

Notice that this concept is used in the proof of the enumerability of the rational numbers, given below. e set of rational numbers is an enumerable set. Envision a table which contains all rational numbers (below). One can make a function that dovetails back and forth across the entire area of the table. This function enumerates all rational numbers.

Table of all rational numbers
0 1 2
1
2
3

Rational numbers

The set of rational numbers is not countable. The proof is a proof by contradiction, an indirect proof:

Suppose that the set of rational numbers is countably infinite, then the interval of rational numbers r with is (as a subset) also countable, and the interval can be written as a sequence:

Since any real number between 0 and 1 can be written as a decimal number the sequence ri can be written as an infinitely long list:

i ri
0 0.32847...
1 0.48284...
2 0.89438...
3 0.00154...
4 0.32425...
... ...
0.55544...

But this list cannot be complete:
Specifically, we construct a decimal number which differs from each of real number in the list by at least one digit, using the following procedure:
If the i-th digit (after the decimal point) of the i-th number in the list is a 5, then take 4 as the i-th digit, and if not, then take 5 instead.he Thus the i-th digit of the newly constructed number differs from the i-th digit of the i-th real number in the list, and therefore does not appear in the list. Since this contradicts our initial assumption, the assumption, namely, that the set is countable, is wrong.


This is known as Cantor's diagonalization argument. It is important to note that this argument assumes that two different decimal notations represent two different numbers. This is generally true, with one notable exception. Any digit followed by an infinite series of nines is equivalent to the same digit, increased by one, followed by an infinite series of zeros. For example, 0.3999… is equivalent to 0.4000…. This argument converts individual digits to either fours or fives, thereby avoiding any complications that could arise from this detail.