- #1
nicnicman
- 136
- 0
Hello all,
This is tripping me up a bit an I just want to see if I on the right track. Here is the problem:
Give a function from Z to N that is onto N but not one-to-one.
Answer: f(x) = {x if x ≥ 0, -1x if x < 0
Seems simple, but I think it works. Note: in our book, 0 is included in the set of natural numbers.
This is tripping me up a bit an I just want to see if I on the right track. Here is the problem:
Give a function from Z to N that is onto N but not one-to-one.
Answer: f(x) = {x if x ≥ 0, -1x if x < 0
Seems simple, but I think it works. Note: in our book, 0 is included in the set of natural numbers.