<?xml version="1.0" encoding="UTF-8"?>

<record version="5" id="927">
 <title>proof that the rationals are countable</title>
 <name>ProofThatTheRationalsAreCountable</name>
 <created>2001-11-16 20:56:31</created>
 <modified>2002-02-25 20:21:25</modified>
 <type>Proof</type>
<parent id="921">cardinality of the rationals</parent>
 <selfproof></selfproof>
 <creator id="2414" name="alozano"/>
 <author id="89" name="quadrate"/>
 <classification>
	<category scheme="msc" code="03E10"/>
 </classification>
 <related>
	<object name="RationalNumber"/>
	<object name="IrrationalNumber"/>
	<object name="Countable"/>
	<object name="Irrational"/>
 </related>
 <keywords>
	<term>countable</term>
	<term>rational number</term>
 </keywords>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}</preamble>
 <content>Suppose we have a rational number $\alpha = p/q$ in lowest terms with $q&gt;0$. Define the ``height'' of this number as $h(\alpha) = |p| + q$. For example, $h(0) = h(\frac{0}{1}) = 1$, $h(-1) = h(1) = 2$, and $h(-2) = h(\frac{-1}{2}) = h(\frac{1}{2}) = h(2) = 3.$ Note that the set of numbers with a given height is finite. The rationals can now be partitioned into classes by height, and the numbers in each class can be ordered by way of increasing numerators. Thus it is possible to assign a natural number to each of the rationals by starting with $0, -1, 1, -2, \frac{-1}{2}, \frac{1}{2}, 2, -3, \ldots$ and progressing through classes of increasing heights. This assignment constitutes a bijection between $\mathbb{N}$ and $\mathbb{Q}$ and proves that $\mathbb{Q}$ is countable.

A corollary is that the irrational numbers are uncountable, since the union of the irrationals and the rationals is $\mathbb{R}$, which is uncountable.</content>
</record>
