Cantor's diagonal theorem · Exercise-CANTOR-S-DIAGONAL-THEOREM-009
Step-by-step solved exercise: Cardinals
Let \(\displaystyle A\) be the set of binary sequences with finitely many ones. Is \(\displaystyle A\) countable?
Cantor's diagonal theorem · Exercise-CANTOR-S-DIAGONAL-THEOREM-009
Let \(\displaystyle A\) be the set of binary sequences with finitely many ones. Is \(\displaystyle A\) countable?
Each sequence in \(\displaystyle A\) has a last \(\displaystyle 1\), or none, so it is zero from some point on.
Truncating the sequence after its last \(\displaystyle 1\) gives a finite string of zeros and ones.
That string completely determines the sequence, so the assignment is injective.
Finite binary strings form a countable set, so \(\displaystyle A\) is countable.
Yes: each element of \(\displaystyle A\) is determined by a finite string of zeros and ones, and the finite strings form a countable set.