show that the set of all 2-element subsets of $\mathbb{N}$ is countable
could someone guide me through this problem?
show that the set of all 2-element subsets of $\mathbb{N}$ is countable
could someone guide me through this problem?
Hint: Let $\{a,b\}$ be a pair of natural numbers, then $a<b$ or $b<a$. Without loss of generality $a<b$. Then the map $\{a,b\}\mapsto 2^a3^b$ is injective.
Hint: Use the same technique as you did to prove that the set of rationals is countable.
More generally, the set of all finite subsets of $\mathbb{N}$ is countable.
For any such set, $K = \{k_i\}_{i=1}^m$ where each $k_i \in \mathbb{N}$, map $K$ into $\prod_{i=1}^m p_i^{k_i}$ where $p_i$ is the $i$-th prime.
By unique factorization, the map is into, so the set of finite subsets is countable.
The set of subsets $\{a, b\}$ with $a < b$ is countable, and each of them is countable. So what you are looking at is a countable union of countable sets, thus countable.