Question
Let $\text{f : W}\rightarrow\text{W}$ be defined as
$\text{f(n)} = \begin{cases} \text{n -1}, & \text{if n is odd} \\ \text{n+1}, &\text{if n is even} \end{cases}$
Show that f is invertible and find the inverse of f. Here, W is the set of all whole numbers.
$\text{f(n)} = \begin{cases} \text{n -1}, & \text{if n is odd} \\ \text{n+1}, &\text{if n is even} \end{cases}$
Show that f is invertible and find the inverse of f. Here, W is the set of all whole numbers.