Let $(x)$ be the fractional part of a real number $x$. Prove that the function on $\mathbb{R}$ $$f(x)=\sum_{n=1}^{\infty}\frac{(nx)}{n^2}$$ is discontinuous at a countable set of points that is dense in $\mathbb{R}$.
The solution to this part is that $f$ is discontinuous on $\mathbb{Q}$. It is true when when the domain of $f$ is restricted to $\mathbb{I}$, it would be continuous. However, if we consider the domain $\mathbb{R}$, discontinuity of $f$ on the rational numbers implies discontinuity everywhere since $\mathbb{Q}$ is dense in $\mathbb{R}$, so technically speaking, $f$ is discontinuous everywhere.
Am I correct to say this? If yes, should things be stated more clearly, or are they supposed to be understood as an implicit implication?