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…
[Math] Why rational numbers are dense
number theoryrational numbers
Related Solutions
Here's one example of where the difference between rational numbers and irrational numbers matters. Consider a circle of circumference $1$ (in any units you choose), and suppose we have an ant (of infinitesimal size, of course) on the circle that moves forward by $f$ instantaneously once per second. Then the ant will return to its starting point if and only if $f$ is a rational number.
Maybe that was a little contrived. How about this instead? Consider an infinite square lattice with a chosen point $O$. Choose another point $P$ and draw the line segment $O P$. Pick an angle $\theta$ and draw a line $L$ starting from $O$ so that the angle between $L$ and $O P$ is $\theta$. Then, the line $L$ passes through a lattice point other than $O$ if and only if $\tan \theta$ is rational.
In general the difference between rational and irrational becomes most apparent when you have some kind of periodicity in space or time, as in the examples above.
You are completely right in that the notion of holes depends on what you can put between your numbers. There is always a bigger set. The integers are contained in the rationals, which are contained in the real numbers, but those themselves can be viewed to have many holes, called non-standard real numbers (e.g. infinitesimals).
In order to give the ideas of “holes” and “being without holes” a meaning, you have to define what the total set of your numbers should be. If you say you want all rationals, that is fine. But there are properties which are only fulfilled by bigger sets of numbers.
For example you can easily construct a right triangle with legs of length $1$. Then the length of the hypotenuse will not be a natural number like $1$ nor even a rational number. It is $\sqrt2$, a hole in the rational numbers. The same happens if you want to measure the circumference of a circle with rational radius.
As for the statement in your book, $\sqrt2$ and $π$ are probably numbers they want on their number line. However what exactly the set of numbers on the number line is, depends on how you define it. There is not a right or wrong way. Just more and less useful ones for doing math with.
In analysis now, there are still more things you would like to describe by numbers. For example you want to find zeros of a function. For the real numbers the following property holds:
Let $f: ℝ→ℝ$ be a continuous function and $a<b$ real numbers such that $f(a) < 0 < f(b)$. Then there is a $x$ between $a$ and $b$ such that $f(x) = 0$.
This is not true for the rational numbers. The reason is, you can always make your interval $(a, b)$ smaller and smaller, keeping $f(a) < 0 < f(b)$, thereby closing in on the zero of $f$. That way you get a sequence of (rational or real) numbers $(a_n)_{n\inℕ}$ which is Cauchy (meaning the distance $\vert a_m-a_n\vert$ gets arbitrary small for $m$ and $n$ big enough). But only in the real numbers there will always be some limit $x$ contained in all the intervals $(a_n, b_n)$. This property is called completeness.
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.