Q. Let $f: N \rightarrow N$ be defined as $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}$ for all $n \in N$. Then $f$ is
Relations and Functions - Part 2
Solution: