I am given the piecewise function $f: \mathbb{Z} \to \mathbb{Z},$ $ f(x) =\left\{ \begin{matrix} 2n, & \text{if }n \text{ is even} \\ n, & \text{if }n \text{ is odd} \end{matrix}\right.$
I need to find the image of this function. So far I have tried plotting out a list of points, but I am unable to find a pattern. Is there a better approach to this problem?