Let $f(x)=0$ if x is irrational and $f(p/q) = 1/q$ if $p$ and $q$ are positive integers with no common factors. Show that f is discontinuous at every rational and continuous at every irrational on $(0,\infty{})$
Let $x_0=p/q$ that an an element of interval I on which f is continouous. Why is it that $|f(x)-f(x_0)|=1/q$ means f is discontinuous at every rational number. Can't we just choose $\delta$ such that $1/q<\epsilon$