[Math] Why rational numbers are dense

number theoryrational numbers

So the books says that rational numbers are dense, meaning that for every two rational numbers there is another rational number in between them. Is it actually true? Why? It feels to me that there exists two rational numbers that do not have any other rational number in between…maybe I wrong but I can't understand why. I also cannot come up with counterexample…

Best Answer

given any two rational numbers $\frac{p_1}{q_1},\frac{p_2}{q_2}$, we can take the average of the two, $m$ = $\frac{\frac{p_1}{q_1}+\frac{p_2}{q_2}}{2} = \frac{p_1q_2 + p_2q_1}{2q_1 q_2}$ which is rational too. Thus proving there are always a rational number between any two.

Related Question