(a) Give an explicit formula for a function from the set of integers to the set of positive integers that is (i) one-to-one, but not onto (ii) onto, but not one-to-one (iii) one-to-one and onto (iv) 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
Here , A=Z and B = Z+ . We need to give example of function f from A to B such that-
(a.) f is one-to-one but not onto.
Let
The function f(x) is one-to-one because f(a) = f(b) a = b.
Since the image of positive integers are divisible by 3 and the image of negative integers are not divisible by 3.
The function f(x) is not onto because not every integer is the image of an integer.
For Example , 2 cannot be written as with and thus 2 is not the image of any integer.
(b.) f is onto but not one-to-one.
Let
Here, f is not one-to-one because there are different integers that have the same image.
The function f is onto because every positive integer is the image of as
.
(c.) f is one-to-one and onto.
Let
The function f(x) is one-to-one because f(a) = f(b) a = b.
Since the image of positive integers is even and the image of negative integers is odd.
The function f(x) is onto because every positive integer is the image of an integer.
(Even integers are the image of positive integers and odd integers are the image of negative integers).
(d.) f is neither one-to-one nor onto.
Let .
The function is not one-to-one because every integer has the same image.
The function is not onto because every integer different from 1 is not the image of any integer.