2. 21 Consider the representation of a real number in base 3. is the set of all such numbers in whose digits are 0 or 2. If
prove that:
2. 21 Consider the representation of a real number in base 3. is the set of all such numbers in whose digits are 0 or 2. If
prove that:
[Proof] In , each digit of and is 0 or 2, so each digit of and is 0 or 1, and thus each digit of in base 3 is 0, 1, or 2, and by
we know
Conversely, for any number in , each digit in base 3 is 0, 1, or 2, and it can clearly be written as the sum of two numbers whose digits in base 3 are 0 or 1. That is, it can be written in the form .
Therefore, we have
hence