A function f from the set of natural numbers to integers defined by $f(\mathrm{n}) = \begin{cases} \frac{\mathrm{n}-1}{2}, & \text{when } n \text{ is odd} \\ \frac{\mathrm{n}}{2}, & \text{when n is even} \end{cases}$ is
- (1)
neither one-one nor onto
- (2)
one-one but not onto
- (3)
onto but not one-one
- (4)
one-one and onto both.
Show answer
Option (1) is correct.
Checked by our team