Let a function $f : \mathbb{N} \rightarrow \mathbb{N}$ be defined by $f(n) = \begin{cases} 2n, & n = 2, 4, 6, 8, \ldots\ldots \\ n - 1, & n = 3, 7, 11, 15, \ldots\ldots \\ \dfrac{n+1}{2}, & n = 1, 5, 9, 13, \ldots\ldots \end{cases}$
then, $f$ is
- (1)
One-one and onto
- (2)
One-one but not onto
- (3)
Onto but not one-one
- (4)
Neither one-one nor onto
Show answer
Option (1) is correct.
Key from source paper