Would it be correct to say that the image of $f: N \rightarrow R$, where $f(x) = (-1)^x$ is $
f(N)=
\begin{cases}
-1, \quad\text{if}\, x \in O \\
1, \quad \text{if}\, x \in E
\end{cases}
$ where $E$ represents the set of even $N$ numbers, and $O$, the odd set of $N$ numbers?