Your AI-Powered Personal Tutor
Question

Let $f: \mathbb{N} \rightarrow \mathbb{N}$ be defined by $f(n) = \begin{cases} \frac{n+1}{2} & \text{if } n \text{ is odd} \\ \frac{n}{2} & \text{if } n \text{ is even} \end{cases}$, then $f$ is

one-to-one and onto

one-to-one but not onto

onto but not one-to-one

neither one-to-one nor onto

Solution

Please login to view the detailed solution steps...

Go to DASH