Prove that $f: \mathbb{Z} \to \mathbb{Z_{99}}$ defined by $f(x) = [50][x]$ is not injective.
Is it injective when $f: \mathbb{Z_{99}} \to \mathbb{Z_{99}}$?
For the first part, I used $f(45) = f(144) = [72]$ to show that $f : \mathbb{Z} \to \mathbb{Z_{99}}$ is not injective. I am now sure if this method is entirely correct as I don't know if I can simply multiply $[50]$ and $[x]$ to get $[50x]$ since $[50] \in \mathbb{Z_{99}}$ while $[x] \in \mathbb{Z}$.
For the second part, $\mathbb{Z_{99}} = \{{[0], [1], ... , [98]}\}$, so there are no repeat elements in $\mathbb{Z_{99}}$. And so there is only one possible combination of $[50]$ and $[x]$ to produce a particular $f([x])$. I am not entirely sure how to prove this is injective.