20. Give an example of a function from N to N that is a) one-to-one but not onto. b) onto but not one-to-one. c) both onto and one-to-one (but different from the iden- tity function). d) neither one-to-one nor onto.
The Answer to the Question
is below this banner.
Can't find a solution anywhere?
NEED A FAST ANSWER TO ANY QUESTION OR ASSIGNMENT?
Get the Answers Now!You will get a detailed answer to your question or assignment in the shortest time possible.
Here's the Solution to this Question
a) Let us give an example of a function from to that is one-to-one but not onto. The function is one-to-one because of implies and hence , but it is not onto because of the preimage of the odd number is emptyset.
b) Let us give an example of a function from to that is onto but not one-to-one. The function is onto because of the preimage of each natural number contains but it is not one-to-one as
c) Let us give an example of a function from to that is both onto and one-to-one (but different from the identity function). The function obviously is onto and one-to-one, and it is different from the identity function.
d) Let us give an example of a function from to that is neither one-to-one nor onto. The function is neither one-to-one nor onto. Indeed, since , we conclude that it is not one-to-one. Since this function is not onto.