# Are the irrational algebraic numbers dense in the reals?

**URL:** <https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246>\
**Category:** Factual Questions\
**Created:** [June 19, 2009, 12:49am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246 "2009-06-19T00:49:23Z")\
**Posts on this page:** 12\
**Page:** 1

<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:** [June 19, 2009, 12:49am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/1 "2009-06-19T00:49:23Z")

</div>

Google is not being helpful here. Since the algebraic numbers contain the rationals, they must be dense, but what if you remove the rationals? Are you still left with a dense set?

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [June 19, 2009, 12:56am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/2 "2009-06-19T00:56:20Z")

</div>

> [@ultrafilter](#):
>
> Google is not being helpful here. Since the algebraic numbers contain the rationals, they must be dense, but what if you remove the rationals? Are you still left with a dense set?

Yes. If a and b are irrational algebraic numbesr, then (a+b)/2 is also irrational, and also an algebriac number (unless I’m missing something major).

---

<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:** [June 19, 2009, 1:01am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/3 "2009-06-19T01:01:38Z")

</div>

> [@Andy\_L](#):
>
> Yes. If a and b are irrational algebraic numbesr, then (a+b)/2 is also irrational, and also an algebriac number (unless I’m missing something major).

You’re thinking of closure under addition, and that doesn’t hold here (take a = 1 + sqrt(3) and b = 1 - sqrt(3)). What I wonder is, given any two real numbers r and s with r \< s, is there an irrational algebraic number q such that r \< q \< s?

---

<div class="post-metadata">

**Author:** ![Omphaloskeptic](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@Omphaloskeptic](https://boards.straightdope.com/u/Omphaloskeptic)\
**Post date:** [June 19, 2009, 1:03am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/4 "2009-06-19T01:03:32Z")

</div>

> [@ultrafilter](#):
>
> You’re thinking of closure under addition, and that doesn’t hold here (take a = 1 + sqrt(3) and b = 1 - sqrt(3)). What I wonder is, given any two real numbers r and s with r \< s, is there an irrational algebraic number q such that r \< q \< s?

For any given irrational algebraic number x, all nonzero rational multiples rx are also irrational algebraic numbers.

---

<div class="post-metadata">

**Author:** ![Andy\_L](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@Andy\_L](https://boards.straightdope.com/u/Andy_L)\
**Post date:** [June 19, 2009, 1:06am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/5 "2009-06-19T01:06:25Z")

</div>

> [@ultrafilter](#):
>
> You’re thinking of closure under addition, and that doesn’t hold here (take a = 1 + sqrt(3) and b = 1 - sqrt(3)). What I wonder is, given any two real numbers r and s with r \< s, is there an irrational algebraic number q such that r \< q \< s?

Oops. You’re right. Omphaloskeptic has provided an actual proof.

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [June 19, 2009, 1:15am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/6 "2009-06-19T01:15:33Z")

</div>

Is the difference between an irrational and a rational ever rational?

I don’t think so. (But I’m asking so you can correct me if I’m wrong.)

Also, is an irrational divided by a rational ever rational?

Again, I don’t think so. (But again, not a mathematician. Correct me!)

Is there always a rational between any two irrational algebraics?

That’s conjecture number three. I suspect it’s true. (Sure would be nice if I had arguments for these conjectures, wouldn’t it?)

If I’m right (that any irrational divided by a rational is irrational, that any irrational minus a rational is irrational, and there is always a rational between any two irrational algebraics), then the irrational algebraics are dense.

For (and all of the following assumes the above) between any two irrational algebraics P and Q there is a rational R, and the interval between R and (say) Q is irrational and algebraic, (since its length is an algebraic minus an algebraic) and so the midpoint of that interval is also to be found at an irrational algebraic number (since it’s an algebraic divided by an algebraic).

I am sure one of the three assumptions–probably the third–has an obvious counterexample, though.

ETA: The first two assumptions are trivially true. If you could divide an irrational by a rational and get a rational, then you could multiply a rational by a rational and get an irrational. But you can’t. Similarly, if you could subtract a rational from an irrational and get a rational, then you could add a rational to a rational and get an irrational. But you can’t. But what about my third assumption?

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [June 19, 2009, 1:27am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/7 "2009-06-19T01:27:15Z")

</div>

I think I can prove the third assumption by proving that between _any_ pair of numbers P and Q there is a rational number. For take the difference between P and Q. Whatever that difference is, there is some rational number smaller than that difference, for the difference must be greater than zero (we’re assuming P is not equal to Q of course!), and this means that there is some number k large enough such that 1/k is smaller than Q minus P. But some multiple of 1/k (call it m/k) must lie between P and Q. (There must be a multiple of 1/k that is the last one before P. The next multiple can not be greater than Q since 1/k is less than Q - P.) And m/k is rational, since it’s a multiple of 1/k and 1/k is rational.

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [June 19, 2009, 1:28am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/8 "2009-06-19T01:28:23Z")

</div>

> [@Andy\_L](#):
>
> Oops. You’re right. Omphaloskeptic has provided an actual proof.

What am I missing? How does his reminder that rational multiples of irrational numbes are also irrational show that the irrational algebraics are dense?

---

<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:** [June 19, 2009, 1:31am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/9 "2009-06-19T01:31:04Z")

</div>

If r is irrational, then for any rational s, r+s is irrational (else the difference between the rational numberfs r+s and s would be irrational). And the sum of two algebraic numbers is algebraic (not entirely evident, but true). So the irrational aglebraics are certainly dense.

---

<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:** [June 19, 2009, 1:34am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/10 "2009-06-19T01:34:28Z")

</div>

> [@Frylock](#):
>
> I think I can prove the third assumption by proving that between _any_ pair of numbers P and Q there is a rational number.

That’s the fact that the rationals are dense, which is known (and the proof is basically like yours).

**Omphaloskeptic** is hinting at the following proof: let r and s be two reals with r \< s, and let x be an irrational algebraic number. Then there is some rational q with r/x \< q \< s/x. This implies that r \< qx \< s, and qx is an irrational algebraic. So the answer is yes.

---

<div class="post-metadata">

**Author:** ![Frylock](https://avatars.discourse-cdn.com/v4/letter/f/ce7236/32.png) [@Frylock](https://boards.straightdope.com/u/Frylock)\
**Post date:** [June 19, 2009, 1:36am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/11 "2009-06-19T01:36:31Z")

</div>

> [@ultrafilter](#):
>
> That’s the fact that the rationals are dense, which is known (and the proof is basically like yours).
> 
> **Omphaloskeptic** is hinting at the following proof: let r and s be two reals with r \< s, and let x be an irrational algebraic number. Then there is some rational q with r/x \< q \< s/x. This implies that r \< qx \< s, and qx is an irrational algebraic. So the answer is yes.

Got it.

But just to be sure, does my proof (in post 6) work too? 😛

---

<div class="post-metadata">

**Author:** ![Saint\_Cad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/saint_cad/32/18907_2.png) [@Saint\_Cad](https://boards.straightdope.com/u/Saint_Cad)\
**Post date:** [June 19, 2009, 1:36am UTC](https://boards.straightdope.com/t/are-the-irrational-algebraic-numbers-dense-in-the-reals/500246/12 "2009-06-19T01:36:45Z")

</div>

> [@Frylock](#):
>
> Is the difference between an irrational and a rational ever rational?

Assume x - r/s = t/u  
x = t/u + r/s  
x = (st + ru)/us  
therefore x e Q

> [@Frylock](#):
>
> Also, is an irrational divided by a rational ever rational?

Assume x/(r/s) = t/u  
x = (rt)/(su)  
therefore e Q

> [@Frylock](#):
>
> Is there always a rational between any two irrational algebraics?

General proof (very informal): Between any two irrationals there is at least one rational.  
Let i and j be irrational with j\>i.  
In looking at each place value, there exists a digit in j larger than i. Note that since i and j are assumed irrational, there is no problem with the whole 1.000000… = 0.999999…

Let k = the number made up of the same digit of i & j until they get to that first different digit. Choose the digit from j and terminate the decimal.  
i\<k\<j and k e Q
