If $f:\mathbb{Z}\to\mathbb{N}$ is defined by $f(n)=\begin{cases}2n, & \text{if } n>0\\ 1, & \text{if } n=0\\ -2n-1, & \text{if } n<0\end{cases}$ then f is
- (1)
one-one but not onto
- (2)
onto but not one -one
- (3)
both one-one and onto
- (4)
neither one-one nor onto
Show answer
Option (2) is correct.
Official TGCHE final key