Give two examples of function from Z to Z that are onto but not one-to-one.
Two examples of functions from Z to Z which are onto but not one-to-one.
Give two examples of functions from Z to Z that are onto but not one-to-one
This is onto but not one-to-one: it takes the value of every integer twice.
f is onto because the value n is attained on 2n, i.e.
f is not one-to-one because, for instance,
Here is the floor function, which rounds down to the nearest smaller integer
Bartleby provides explanations to thousands of textbook problems written by our experts, many with advanced degrees!Get Started