سوال ۹۸ کنکور ارشد علوم کامپیوتر ۱۳۹۹
کدامیک از مجموعههای زیر شمارای نامتناهی است؟
پاسخ صحیح: گزینهٔ A — مجموعه همهٔ دنبالههای متناهی از اعداد گویا
We must find the set that is countably infinite: in bijection with (infinite, but not bigger than ). Three of the options are uncountable; only one is countably infinite.
Option 1 — finite sequences of rationals (countably infinite). Fix a length . A sequence of rationals is an element of . Since is countable and a finite Cartesian product of countable sets is countable, each is countable. The set of all finite sequences is a countable union of countable sets, hence countable. It is clearly infinite (e.g. the one-term sequences for ). So it is countably infinite. ✓
Option 2 — all (infinite) sequences of naturals (uncountable). This is , the set of all functions . It contains , which already has cardinality . Uncountable. ✗
Option 3 — constant sequences of reals (uncountable). A constant sequence is determined by the single real , so this set is in bijection with . Its cardinality is . Uncountable. ✗
Option 4 — binary sequences (uncountable). This is , of cardinality by Cantor's diagonal argument. Uncountable. ✗
Only option 1 is countably infinite.
Pitfall: Finite sequences over a countable alphabet form a countable set, but allowing infinite-length sequences (an actual function on all of ) jumps to the uncountable — even over the two-letter alphabet . The single word "finite" in option 1 is the whole point.