Let $k \in \mathbb{R}$. What are the possible values of $k$ Under the condition that $2k \in \mathbb{Z}$ and $\frac{2}{k} \in \mathbb{Z}$. I know that the answer is $k \in \lbrace \frac{1}{2}, 1, 2 , -\frac{1}{2}, -1, -2\rbrace$, But I don't know how to prove it ?
Thanks for any help!