A function is injective (one-to-one) if different elements in the domain map to different elements in the codomain. Consider $f(1) = 0$ and $f(3) = 0$. Since $f(1) = f(3)$ but $1 \neq 3$, the function is not injective.
A function is surjective (onto) if every element in the codomain has a corresponding element in the domain. The codomain is $W$ (whole numbers), which includes all non-negative integers. Let $w \in W$. We need to find an $n \in N$ such that $f(n) = w$. If $w = 0$, then $f(1) = 0$, so $0$ is in the range. If $w > 0$, then let $n = 2w$. Since $w$ is a whole number, $n = 2w$ is a natural number and is even. Then $f(n) = f(2w) = \frac{2w}{2} = w$. Thus, every element in $W$ has a pre-image in $N$. Therefore, the function is surjective.
Since the function is not injective but is surjective, the correct option is (B).
Final Answer: surjective only
AI generated content. Review strictly for academic accuracy.