
For one - one
Let f(n) = f(m).
It can be observed that if n is odd and m is even, then we will have n − 1 = m + 1.
⇒ n − m = 2
However, this is impossible.
Similarly, the possibility of n being even and m being odd can also be ignored under a similar argument.
∴ Both n and m must be either odd or even. Now, if both n and m are odd, Then, we have


Hence, f is an invertible function.

