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?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. Each sequence in \(\displaystyle A\) has a last \(\displaystyle 1\), or none, so it is zero from some point on.

  2. Truncating the sequence after its last \(\displaystyle 1\) gives a finite string of zeros and ones.

  3. That string completely determines the sequence, so the assignment is injective.

  4. Finite binary strings form a countable set, so \(\displaystyle A\) is countable.

    \[\displaystyle A\text{ es numerable}\]

Answer

Yes: each element of \(\displaystyle A\) is determined by a finite string of zeros and ones, and the finite strings form a countable set.

🎯 Build my path to this exercise