1

I know a set $B$ is dense in $\mathbb{R}$ if an element of $B$ can be found between any two real numbers $a,b$ $s.t.$ $a<b$. I have an inkling that, as $n \rightarrow \infty$, $q=2^n \rightarrow \infty$, and we can play with the values of $\dfrac {p} {q}$ such that for any $a,b \in \mathbb{R}$, $0<b-a< \dfrac {p} {q}$.

Exactly how is a good way to show this? I can start with an interval $(0,1)$ and find a $\dfrac {p} {q}=1/2 $, which is in $(0,1)$. I can shrink the interval and find a $q$ sufficiently large such that $0<b-a< \dfrac {p} {q}$.

I don't think this constitutes a proof but perhaps I'm on the right track? Any suggestions? Thanks!

Jabernet
  • 1,724

2 Answers2

2

Let $a,b\in\mathbb{R}$ such that $a<b$. There is $n\in\mathbb{N}$ such that $0<\frac{1}{2^n}<\frac{b-a}{3}$.

Moreover, $2^na<[2^na]+1=[2^na+1]\le 2^na+1$. Thus

$$a<\frac{[2^na+1]}{2^n}\le a+\frac{1}{2^n}<a+\frac{b-a}{3}<b$$

Then, every open interval $(a,b)$ has a number of the form $\frac{[2^na+1]}{2^n}$.

Please, note that the only property we use was $1<2$ for found $n$

sinbadh
  • 7,521
1

Hint: The numbers of the form $\frac{p}{2^n}$ where $p,n$ are integers are regularly spaced like the markings of a ruler. If you want to guarantee that one of the markings is between $a,b$, how fine divisions do you need?

user21820
  • 57,693
  • 9
  • 98
  • 256