Example of open $O\subset \mathbb R$ dense s.t. $O\neq \mathbb R$

real-analysis

Baire's theorem says that intersection of open sets that are dense is still dense. For me, the first dense set I'm thinking to in $\mathbb R$ is $\mathbb Q$ or $\mathbb R\backslash \mathbb Q$ but no of those sets are open (and Baire's theorem doesn't apply for those set). Could someone give me an example of open set $\mathcal O\subset \mathbb R$ that is dense in $\mathbb R$ and such that $\mathcal O\neq \mathbb R$ ?

Best Answer

$$\mathbf R\smallsetminus\mathbf Z=\bigcup_{n\in\mathbf Z}(n, n+1) $$ is another example.

Related Question