Confirming your payment

Skip to content

Sign up now and get .

Practice Questions · Question 22 of 49

Let f : N N be defined by f(n) = cases n + 1, & if n is odd n - 1, & if n is even cases Show that f is one-one and onto.

Question 223 marksMedium

Let f:N→Nf : N \to N be defined by

f(n)={n+1,if n is oddn−1,if n is evenf(n) = \begin{cases} n + 1, & \text{if } n \text{ is odd} \\ n - 1, & \text{if } n \text{ is even} \end{cases}

Show that ff is one-one and onto.