Homepage › Solution manuals › Walter Rudin › Principles of Mathematical Analysis › Exercise 2.17
Exercise 2.17
Exercise 17: Let be the set of all whose decimal expansion contains only the digits 4 and 7. Is countable? Is dense in ? Is compact? Is perfect?
Answers
Let be the set of sequences on the digits and . We get an injection by associating with a sequence the number whose th decimal is if and otherwise. By thm. 2.14, this makes uncountable.
, and is therefore not dense in .
Since is bounded, compactness is equivalent to closedness. Assume , and let be the th digit in its decimal expansion. For some , is not equal to or . Choose such that the th decimal digit of all in a -neighborhood of is . (Note that this can be done.) This is a neighborhood of that does not intersect . Therefore is open and is closed, hence compact.
Let , choose , and choose such that . The number obtained by changing the th digit of from to or vice versa, is contained in an -neighborhood of . This means that is a limit point, so is perfect.