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

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

The discussion centers on defining a function from the set of integers (Z) to the set of natural numbers (N) that is onto N but not one-to-one. The proposed function is f(x) = {x if x ≥ 0, -1x if x < 0}, which effectively behaves like the absolute value function |x| when restricted to integers. Participants confirm that this function meets the criteria of being onto while not being one-to-one, as it maps multiple integers to the same natural number.

PREREQUISITES
  • Understanding of functions and mappings in mathematics
  • Familiarity with the concepts of onto (surjective) and one-to-one (injective) functions
  • Basic knowledge of the sets of integers (Z) and natural numbers (N)
  • Experience with piecewise functions and their definitions
NEXT STEPS
  • Study the properties of surjective and injective functions in detail
  • Explore piecewise function definitions and their applications
  • Learn about the absolute value function and its characteristics
  • Investigate examples of functions that are onto but not one-to-one
USEFUL FOR

Mathematics students, educators, and anyone interested in understanding function properties, particularly in the context of set theory and mappings.

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
1K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
17
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
14
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
4
Views
4K