# Every infinite set has a countable dense subset?

## Homework Statement

Prove that every infinite set has a countable dense subset.

## The Attempt at a Solution

I have almost no idea how to solve this problem of my analysis homework. I was thinking that i need to show that there is a countable subset that has all points of the initial set as limit points. So i was thinking of saying that that any open infinite set can be written as a countable union of subsets or like neighbourhoods, and using something like a pigeon hold principle to say that each of these neighbourhoods must contain some points in the countable subset. but we have countable nbhds and countable points, i dont think the pigeonhole principle works here... I'm probably way off the solution... ANY HELP?

Dick
Homework Helper
Not every metric space has a countable dense subset. Google the "long line". Only separable spaces have one. If it's a subset of the reals then you are ok.

ok, since this is real analysis, i think i am mostly interested in the real line. so how do i go about solving it for the reals?

well we know that the rationals are countable and dense in the reals. but umm..i donno, at this point i am lost about how to prove this.

Dick
Homework Helper
That's a good start. Think of all of the intervals (q-1/n,q+1/n) for all q rational and fixed n. That's a countable set of intervals, right? Pick one x in your infinite set in each interval (if there is one). That's a countable set of x's, correct? Now union all of those countable sets over n. Isn't that dense? There's more economical ways to do this, but who cares?

i think i get what u're saying.. so for every q rational for a fixed n we choose and x in the set that belongs to (q-1/n ; q+1/n). Giving us a set of countable x's, then we do this for all n, which is a countable number of countable sets, thus countable.

But i am having a little trouble seein that this is dense. To show this we need that any point in the infinte set is either in the union of our new sets or a limit point.
To show that any point will be a limit point we need that there is a point within 1/n of it for every n. Certainly there is a rational number 1/n close to it, but are there x's in that range too?

Oh wait a minute...i think i missunderstood the phrase you said "(if there is one)" .. There is definitely one, since there are infinite points and only countable intervals (pigeonhole). (unless by infinite we mean countable, then we definitely have a countable dense subset, since the set is dense in itself). Unless (q - 1/n; q+1/n) is totally disjoint from the set. I just need some convincing that every point is now a limit point

Last edited:
Dick