Consider the function $f : \mathbb{R} \longrightarrow \mathbb{R}$ defined by
\begin{equation*} f(x)=\begin{cases} 1 + \frac{1}{q}, \quad &\text{if} \, x = \dfrac{p}{q} \in \mathbb{Q}. \\ 1, \quad &\text{otherwise}. \\ \end{cases} \end{equation*}
I need proof that the function is continuous in $\mathbb{R} \setminus \mathbb{Q}$ and discontinuous in $\mathbb{Q}$. Prove that f is discontinuous in $\mathbb{Q}$ is very easy. Let $\dfrac{p}{q} \in \mathbb{Q}$ and consider the sequence $\dfrac{p}{q} + \dfrac{1}{n}$. Then
$$\dfrac{p}{q} + \dfrac{1}{n} \longrightarrow \dfrac{p}{q} \quad \text{and} \quad f\bigg(\dfrac{p}{q} + \dfrac{1}{n} \bigg) \not\longrightarrow f\bigg(\dfrac{p}{q}\bigg).$$
My doubt is: How i proof that f is continuous in $\mathbb{R} \setminus \mathbb{Q}$?
I took an irrational number i and an arbitrary sequence of real numbers that converges to i and show that the function applied to this sequence converges to f(i)
I took an irrational number i and an arbitrary sequence of irrational numbers that converge to i and show that the function applied to this sequence converges to f(i) (is it a constant sequence and therefore trivial?)
Option 1 seems difficult to me and I couldn't get anywhere. Option 2 is very easy.