# Proportion of rational numbers

**URL:** <https://boards.straightdope.com/t/proportion-of-rational-numbers/172764>\
**Category:** Factual Questions\
**Created:** [May 3, 2003, 1:13am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764 "2003-05-03T01:13:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryanmcc](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bryanmcc](https://boards.straightdope.com/u/bryanmcc)\
**Post date:** [May 3, 2003, 1:13am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/1 "2003-05-03T01:13:45Z")

</div>

I was just reading “Motion Mountain,” an on-line physics textbook by Christoph Schiller ([http://motionmountain.dse.nl/welcome.html](http://motionmountain.dse.nl/welcome.html)). In it he says (in Appendix B, page 912) that the graph of the function e^x only goes through one point with two rational coordinates: (0,1). OK, fine – I’m willing to accept that. But then he says: “If you imagine to paint in blue all points on the plane with two rational coordinates, the plane would look quite bluish…” What? I thought the majority of points on the number line were irrational (and hence the majority of points on a Cartesian plane). No?

---

<div class="post-metadata">

**Author:** ![The\_Peyote\_Coyote](https://avatars.discourse-cdn.com/v4/letter/t/5f8ce5/32.png) [@The\_Peyote\_Coyote](https://boards.straightdope.com/u/The_Peyote_Coyote)\
**Post date:** [May 3, 2003, 1:39am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/2 "2003-05-03T01:39:19Z")

</div>

Yes, bryanmcc, but consider the sheer number of points with all rational coordinates.

---

<div class="post-metadata">

**Author:** ![Xema](https://avatars.discourse-cdn.com/v4/letter/x/9de053/32.png) [@Xema](https://boards.straightdope.com/u/Xema)\
**Post date:** [May 3, 2003, 1:44am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/3 "2003-05-03T01:44:49Z")

</div>

The “paint the points blue” analogy has the weakness that spots of paint have some area, whereas points don’t.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 3, 2003, 2:29am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/4 "2003-05-03T02:29:14Z")

</div>

**Q** [sup]n[/sup] is dense in **R** [sup]n[/sup]. In other words, pick any element r of **R** [sup]n[/sup], and any [symbol]e[/symbol] \> 0. There is a q in **Q** [sup]n[/sup] such that |q - r| \< [symbol]e[/symbol].

So up to any resolution you would like, the plane would appear blue, even though the total area of blue points is zero. Freaky, ain’t it?

---

<div class="post-metadata">

**Author:** ![lucwarm](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lucwarm](https://boards.straightdope.com/u/lucwarm)\
**Post date:** [May 3, 2003, 10:19am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/5 "2003-05-03T10:19:30Z")

</div>

> [@](#):
>
> \*Originally posted by ultrafilter \*  
> \*\*
> 
> So up to any resolution you would like, the plane would appear blue, even though the total area of blue points is zero. Freaky, ain’t it? \*\*

I’m kinda skeptical - what is the probability that a random photon will hit at a point with two rational coordinates?

---

<div class="post-metadata">

**Author:** ![Shade](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@Shade](https://boards.straightdope.com/u/Shade)\
**Post date:** [May 3, 2003, 10:24am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/6 "2003-05-03T10:24:54Z")

</div>

I want to expand on one point. It is not easy to give a sensible meaning to ‘ **Q** [sup]n[/sup] having zero area’ or ‘picking a real at random has a zero chance of being a rational’ but the only sensible way chosen makes these both true.

Obviously ‘painting all rational points blue’ is an analogy. The point he’s making is that ‘rational points are dense’ (As ultrafilter describes - in any small circle there will be (infinitely many) rational points). You are right that there are ‘almost no’ rational points compared to irrational. He just picked a metaphor that can be unfortunately misinterpreted.

---

<div class="post-metadata">

**Author:** ![RM\_Mentock](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@RM\_Mentock](https://boards.straightdope.com/u/RM_Mentock)\
**Post date:** [May 3, 2003, 10:25am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/7 "2003-05-03T10:25:35Z")

</div>

> [@](#):
>
> \*Originally posted by lucwarm \*  
> \*\*I’m kinda skeptical - what is the probability that a random photon will hit at a point with two rational coordinates? \*\*

How wide is a photon? 🙂

---

<div class="post-metadata">

**Author:** ![Hari\_Seldon](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hari_seldon/32/5173_2.png) [@Hari\_Seldon](https://boards.straightdope.com/u/Hari_Seldon)\
**Post date:** [May 3, 2003, 9:03pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/8 "2003-05-03T21:03:09Z")

</div>

The trouble is that a photon has size (even ignoring uncertainty) and therefore one cannot ask what “point” it hits.

The sense in which the rationals on the line have 0 measure is this: Take a very small positive number, say 10 to the power  
-google. Then I can find a set of intervals whose total length is less than your chosen number, such that every rational number is contained in at least one of those intervals.

Here is the construction: First put the rational numbers in a sequence. Say 0/1, followed by 1/1, followed by 1/2, followed by 2/1, 1/3, 3/1, 1/4, 2/3, 3/2, 4/1,… (first the fractions in lowest terms whose numerator and denominator add up to 1, then 2, then 3 and so on, in order of increasing numerator). Then calling the small number w, I put an interval of size w/2 around the first, w/4 around the second, w/8 around the third and so on. The total lengths of all these intervals in w and every rational is contained in at least one of them. I did only the positive rationals, but it is trivial to get the negative ones too.

---

<div class="post-metadata">

**Author:** ![ftg](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/ftg/32/2801_2.png) [@ftg](https://boards.straightdope.com/u/ftg)\
**Post date:** [May 3, 2003, 9:46pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/9 "2003-05-03T21:46:58Z")

</div>

Note that the Real plane is only one such plane you can define. The Rational plane is a plane of less density (Cantor set theory-wise). You can create a plane with numbers of greater density than the Reals. An easy to construct set of greater size than the reals is the set of functions of reals to reals. Those can be mapped into a much denser plane. Go up another level, the cardinality of functions from functions to functions is greater still and results in a denser plane, etc. No stopping it.

It is merely because so much is taught about the Real plane that people think that it is “standard” when it is merely one level in an immense hierarchy.

To me, a plane of blue colored Rational points has just as much claim to be blue as a plane of blue colored Real points. Neither colors “everything”.

---

<div class="post-metadata">

**Author:** ![Xema](https://avatars.discourse-cdn.com/v4/letter/x/9de053/32.png) [@Xema](https://boards.straightdope.com/u/Xema)\
**Post date:** [May 4, 2003, 12:36am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/10 "2003-05-04T00:36:26Z")

</div>

So we have a truly huge number of blue points, no one of which is actually visible. Sounds like one hand clapping.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 4, 2003, 12:39am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/11 "2003-05-04T00:39:22Z")

</div>

> [@](#):
>
> \*Originally posted by ftg \*  
> \*\*Note that the Real plane is only one such plane you can define. The Rational plane is a plane of less density (Cantor set theory-wise). You can create a plane with numbers of greater density than the Reals. An easy to construct set of greater size than the reals is the set of functions of reals to reals. Those can be mapped into a much denser plane. Go up another level, the cardinality of functions from functions to functions is greater still and results in a denser plane, etc. No stopping it.
> 
> It is merely because so much is taught about the Real plane that people think that it is “standard” when it is merely one level in an immense hierarchy.
> 
> To me, a plane of blue colored Rational points has just as much claim to be blue as a plane of blue colored Real points. Neither colors “everything”. \*\*

You do end up with sets of higher cardinality, and they are two dimensional, but “denser” there doesn’t really mean anything, at least as far as I know. Note that the sense in which the rationals are dense in the reals and both are self-dense is very precise.

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [May 4, 2003, 2:23am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/12 "2003-05-04T02:23:40Z")

</div>

> [@](#):
>
> \*Originally posted by Hari Seldon \*  
> The trouble is that a photon has size (even ignoring uncertainty)

Really? What the size of a photon, ignoring uncertainty?

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 4, 2003, 11:34am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/13 "2003-05-04T11:34:09Z")

</div>

> [@](#):
>
> \*Originally posted by Achernar \*  
> \*\*Really? What the size of a photon, ignoring uncertainty? \*\*

I’m pretty sure you know what he means. Photon size is usually treated as being the wavelength

λ = _c_ / f

Consider a fine metal mesh in the path of a flux of microwave photons.

If the size of the holes in the mesh is ten times the wavelength of the photons, they’ll all get through. If the size of the holes is equal to the wavelength, 86% will get through. If the size of the holes if equal to half the wavelength, 63% (1 - 1 / _e_) will get through.

If _x_ is the hole size, the proportion that passes through is given by:

1 - _e_[sup]-.5_x_/λ[/sup]

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [May 4, 2003, 11:44am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/14 "2003-05-04T11:44:47Z")

</div>

Okay, right. I guess that makes a whole lot of sense, but I’m not used to treating photon size like that. At least, it seems counter-intuitive to me that we have meter-sized photons flying around for radio broadcasts. But I get it.

---

<div class="post-metadata">

**Author:** ![Desmostylus](https://avatars.discourse-cdn.com/v4/letter/d/c57346/32.png) [@Desmostylus](https://boards.straightdope.com/u/Desmostylus)\
**Post date:** [May 4, 2003, 11:46am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/15 "2003-05-04T11:46:27Z")

</div>

> [@](#):
>
> _Originally posted by Desmostylus \*  
> 1 - e[sup]-.5_x\*/λ[/sup] \*\*

Oops, make that

1 - _e_[sup]-2_x_/λ[/sup]

---

<div class="post-metadata">

**Author:** ![bryanmcc](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bryanmcc](https://boards.straightdope.com/u/bryanmcc)\
**Post date:** [May 4, 2003, 3:59pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/16 "2003-05-04T15:59:48Z")

</div>

**ultrafilter** , **R** [sup]n[/sup] is, I assume, the set of real numbers. So **Q** [sup]n[/sup] is what, the set of rational numbers? And what the heck is epsilon? It appears that you are saying that for any real, there is a rational arbitrarily close to it. Fine, but isn’t there also an irrational arbitrarily close to it? Why do the rationals “win” to color the plane? Could you explain this in language understandable to someone who is bright enough, but only has two semesters of calculus?

> [@](#):
>
> \*Originally posted by Shade \*  
> \*\*I want to expand on one point. It is not easy to give a sensible meaning to ‘ **Q** [sup]n[/sup] having zero area’ or ‘picking a real at random has a zero chance of being a rational’ but the only sensible way chosen makes these both true.
> 
> Obviously ‘painting all rational points blue’ is an analogy. The point he’s making is that ‘rational points are dense’ (As ultrafilter describes - in any small circle there will be (infinitely many) rational points). You are right that there are ‘almost no’ rational points compared to irrational. He just picked a metaphor that can be unfortunately misinterpreted. \*\*

What is the mathematical definition of “dense”? Does it just mean “an infinite number within any arbitrarily small area”? (If so, it sounds like your typical mathematical understatement. ;)) If so, aren’t the irrationals also dense? I.e., aren’t there also an infinite number of irrational numbers in any arbitrarily small interval? If there are almost no rational points compared to irrational, won’t the plane appear red?

---

<div class="post-metadata">

**Author:** ![Achernar](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Achernar](https://boards.straightdope.com/u/Achernar)\
**Post date:** [May 4, 2003, 4:11pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/17 "2003-05-04T16:11:44Z")

</div>

> [@](#):
>
> \*Originally posted by bryanmcc \*  
> **ultrafilter** , **R** [sup]n[/sup] is, I assume, the set of real numbers. So **Q** [sup]n[/sup] is what, the set of rational numbers?

Close. They’re the n-dimensional reals and rationals, respectively (not the technical terms). The OP was talking about the plane, so we want **R** [sup]2[/sup] and **Q** [sup]2[/sup], but the idea is the same for any n.

> [@](#):
>
> It appears that you are saying that for any real, there is a rational arbitrarily close to it. Fine, but isn’t there also an irrational arbitrarily close to it? Why do the rationals “win” to color the plane?

You’re absolutely right the irrationals are dense too. And in at least one sense, they’re “denser” than the rationals. The reason they don’t win is because they don’t get any paint. If we painted all rational spots blue and all irrationals red, it would be a different story. I don’t know what story it would be, exactly, but it would not just look like a blue plane.

---

<div class="post-metadata">

**Author:** ![bryanmcc](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bryanmcc](https://boards.straightdope.com/u/bryanmcc)\
**Post date:** [May 4, 2003, 4:26pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/18 "2003-05-04T16:26:07Z")

</div>

Ah, and herein lies the problem: apparently, I can’t even correctly read the material that I am quoting. Somehow I had it in my head that the passage in the OP said paint all rational-rational pairs blue _and_ all irrational-irrational pairs red, in which case I couldn’t figure out why the plane wouldn’t be red. I now have no problem with the quote in the OP (in fact, it’s bloody obvious), but I do think I might need to invest in some reading glasses.

In an attempt to redeem myself, I’ll ask what I thought I was asking originally: if you paint the rational-rational points blue and the irrational-irrational points red, the reds will vastly outnumber the blues, no?

---

<div class="post-metadata">

**Author:** ![John\_Kentzel-Griffin](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@John\_Kentzel-Griffin](https://boards.straightdope.com/u/John_Kentzel-Griffin)\
**Post date:** [May 4, 2003, 5:21pm UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/19 "2003-05-04T17:21:39Z")

</div>

There are more irrational numbers than rational. The rational numbers are countable. That is, you can pair up the rational numbers with the integers. The irrational numbers are uncountable. If you try to pair up the integers (or the rational numbers) with the irrational numbers, you will have irrational numbers left over.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [May 5, 2003, 3:22am UTC](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764/20 "2003-05-05T03:22:16Z")

</div>

If you paint every rational pair blue, and every irrational red, you’d get a red plane. I don’t know what you’d get if you painted (Q X (R - Q)) U ((R - Q) X Q) yellow.

[Next page](https://boards.straightdope.com/t/proportion-of-rational-numbers/172764.md?page=2)
