Give an example of a function $\displaystyle f: \mathbb R \rightarrow \mathbb R$ which is discontinuous at all points of $\displaystyle \mathbb Z$ and continuous at all points of $\displaystyle \mathbb R\\\setminus \mathbb Z$. Then prove the example has these properties.

Can anyone please help me with this question? Thanks a lot.