Prove that every irrational number is the limit of some sequence of rational numbers. That is, given $ x \in \mathbb{R}$\ $ \mathbb{Q}$, show that there exists a sequence {$x_{n}$} with $x_{n} \in \mathbb{Q} $ for $ n \in \mathbb{Q}$ such that $x_{n} \to x$ as $ n \to \infty$
I know I have to use the fact that $\mathbb{Q}$ is dense in $\mathbb{R} $ but not sure how to prove it.
Hint
Let $\left\{[\frac{k}{n},\frac{k+1}{n}[\right\}_{k=0}^{n-1}$ a partition of $[0,1[$ and $x\in \mathbb R\backslash \mathbb Q$. Consider $\{0\},\{x\},\{2x\},...,\{nx\}$ where $\{\cdot \}$ denote the fractional part. You know by Pigeohole principle that there is $k_n,\ell_n\in\{0,...,n\}$ s.t. $$|\{k_nx\}-\{\ell_nx\}|<\frac{1}{n}.$$ Therefore, the sequence $(x_n)$ defined by $$x_n=\frac{\lfloor k_n x\rfloor -\lfloor \ell_nx\rfloor}{\ell_n-k_n}$$ is a sequence of rational that converge to $x$.