Prove Z is countable via the explicit enumeration 0,1,−1,2,−2,….
a0=0,a2k−1=k,a2k=−k(k≥1)
The same diagonal idea as the rationals — starting with the integers.Show proof
With a0=0, a2k−1=k and a2k=−k for k≥1, every integer appears exactly once: m=0 as a0, m≥1 as a2m−1, and m<0 as a−2m.
Hence n↦an is a bijection N→Z, so Z is countable.
Prove (0,1) is uncountable by Cantor's diagonal argument.
xn={56rn’s nth digit=5otherwise
The flipped diagonal cannot be anywhere in the list.Show proof
Suppose the elements of (0,1) could be fully enumerated as r1,r2,…. Each rn has a unique decimal expansion not ending in infinite 9s, so its n-th digit is well defined.
Define x digit by digit: its n-th digit is 5 when rn's n-th digit is not 5, and 6 otherwise. Then x∈(0,1), but x=rn for every n since they differ at digit n — a contradiction.
Hence no enumeration of (0,1) exists: (0,1) is uncountable.
Explain at idea level why a countable union of countable sets is countable, via diagonal enumeration. (Idea level; full proof omitted.)
n=64: the same diagonal sweep of the grid.Show proof
[Sketch] Arrange A1,A2,… as the rows of an infinite grid. Sweeping it in diagonal order — exactly as for the rationals — every element shows up at some finite diagonal position.
[Sketch] This is an idea-level explanation; the full proof needs care with duplicate elements.