CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
2
You visited us 2 times! Enjoying our articles? Unlock Full Access!
Question

Show that f:NN, given by
f(x)={x+1, if x is oddx1, if x is even
is both one-one and onto.

Open in App
Solution

For one-one:
If f(a)=f(b)
a+1=b+1 or a1=b1, if both are even or odd.
Note : f(a),f(b) are not equal if one is even and other is odd, since if a is even and b is odd, a1 is odd and b+1 is even.
a=b.
So, one-one function
Now, for onto:
For all x odd nos. f(x) gives all the even nos.
And all x even nos. f(x) gives all the odd nos.
range=codomain
So, onto function.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon