Also, the element – 2 in the co-domain R is
not image of any element x in the domain R
(Why ) Therefore f is not onto Example 12  Show that f : N → N, given by
1,if
is odd,
( )
1,if
is even
x
x
f x
x
x
+
=   
−
 
is both one-one and onto