Function from Z to N: Onto N but Not One-to-One

  • Thread starter Thread starter nicnicman
  • Start date Start date
Click For Summary

Homework Help Overview

The discussion revolves around finding a function from the set of integers (Z) to the set of natural numbers (N) that is onto N but not one-to-one. Participants are exploring the properties of such functions and their definitions.

Discussion Character

  • Exploratory, Conceptual clarification

Approaches and Questions Raised

  • Participants present a proposed function and discuss its characteristics, particularly its onto and not one-to-one properties. There is also mention of the absolute value function as a related concept.

Discussion Status

The discussion includes attempts to clarify the problem and explore potential functions. Some participants provide feedback on the proposed function, indicating that it aligns with the requirements of the problem. There is acknowledgment of the need to adhere to posting protocols in future discussions.

Contextual Notes

There is a note that the definition of natural numbers in the context of this problem includes zero, which may influence the interpretation of the function's properties.

nicnicman
Messages
132
Reaction score
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.
 
Physics news on Phys.org
nicnicman said:
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.

That works. Your function is essentially the absolute value function, |x|, with its domain restricted to the integers.

Fair warning: The three parts of the homework template are there for a reason. In the future, when you post a problem, do not delete them.
 
Thanks for the help. And, I'll be sure to follow protocol next time.

I guess I could just do this:

f(x) = |x|
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
17
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
14
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
4
Views
4K
Replies
8
Views
2K