Maths WorkshopMaths problems with full solutions
Exercise 824Logic, sets and proofs › Countability and cardinalityL1Added 3 Nov 2026

$\mathbb{Q}$ is countable

#rationals#countability#surjection

Statement

Show that Q\mathbb{Q} is countably infinite.

Hint

Q\mathbb{Q} is the image of Z×N∗\mathbb{Z}\times\mathbb{N}^* under (p,q)↦p/q(p,q)\mapsto p/q, a countable set.

Show solutionHide solution

Solution

Surjection. (p,q)↦p/q(p,q)\mapsto p/q is a surjection Z×N∗→Q\mathbb{Z}\times\mathbb{N}^*\to\mathbb{Q}. Both factors are countable, so Z×N∗\mathbb{Z}\times\mathbb{N}^* is countable. Its image is Q\mathbb{Q}.

Infinite. Q\mathbb{Q} contains N\mathbb{N}, so is infinite.

Countable + infinite. Q\mathbb{Q} is countably infinite.

Conclusion. ∣Q∣=ℵ0|\mathbb{Q}|=\aleph_0.