I know that this kind of problem is asked on this site earlier but I put this question here to clear my doubt related to my conceptual confusion about these kinds of functions.
Consider the function
$$ f(x)= \begin{cases} 1/q : x\in p/q \cap [0,1]; p,q \in \mathbb{N}, (p,q)=1 \\ 0 :~~~~~~~~~~~~~~~~~ else \end{cases} $$
Then How to check the continuity of $f(x) $ in the given domain
I know how to check the continuity of function by sequential criteria like the Dirichlet function. But in this function, how do select how sequences of a rational and irrational number??
I have studied about continuity of these kinds of functions which are defined by rationals and irrationals; I think there are a maximum of four possible types of sequences to check about continuity of function in the given domain that is we choose
the sequence of rationals that converges to irrationals or rational and the sequence of irrationals that converges to irrationals or rational and these four types of sequences satisfy the sequential criteria of continuity then we say the function is continuous or not??
Please correct me if I am not correct and please give some hints to solve the above question.
Thanks!