Countable set · Exercise-COUNTABLE-SET-008
Step-by-step solved exercise: Cardinals
Is \(\displaystyle \mathbb{Q}\) countable?
Countable set · Exercise-COUNTABLE-SET-008
Is \(\displaystyle \mathbb{Q}\) countable?
Each rational is written as \(\displaystyle p/q\) with \(\displaystyle p\in\mathbb{Z}\) and \(\displaystyle q\ge 1\).
The set of pairs \(\displaystyle (p,q)\) is countable, so we can enumerate them.
By traversing the pairs diagonally and skipping repeats, such as \(\displaystyle 2/4\) and \(\displaystyle 1/2\), we get a list of all rationals.
Therefore, \(\displaystyle \mathbb{Q}\) is countable even though it is dense in \(\displaystyle \mathbb{R}\).
Yes: \(\displaystyle \mathbb{Q}\) is countable even though it is dense in \(\displaystyle \mathbb{R}\).