Is There a Surjective Function from Z+ to Z?

Click For Summary
The discussion centers on the existence of a surjective function from the positive integers (Z+) to the integers (Z). Initially, there is skepticism about whether such a function can exist due to Z+ being a subset of Z and the presence of zero in Z. A proposed function, f(N) = (N/2)(-1)^N + 1/4 + (1/4)(-1)^(N+1), successfully demonstrates a mapping that covers all integers. Participants express interest in finding a simpler or more elegant function for this purpose. The conversation concludes with a sense of satisfaction regarding the existence of a surjective function while acknowledging the potential for a less complex solution.
phoenixy
Hi,

Does there exist a function f: Z+ --> Z which is onto?

I had been told there such funciton exists, since both Z+ and Z are countable infinite series. Thus there exists some transformation that could map Z+ to every single Z

However, I still can't shake off the idea that since Z+ is a subset of Z, there just aren't "enough" Z+ to cover every single Z, and the 0 in Z is giving me trouble as well


Thanks for any input
 
Physics news on Phys.org
After goofing around with pencil and paper,

If N is a positive integer, it seems like this does the trick:

f(N)= (N/2)(-1)^N + 1/4 + (1/4)(-1)^(N+1).

This gives:
f(1)=0
f(2)=1
f(3)=-1
f(4)=2
f(5)=-2
f(6)=3
f(7)=-3

and so on. Is that the sort of function that you are talking about?
 
Oh wow, that looks like it.

Now I'm a firm believer of countable infinity. :smile:


Your equation will do, thanks!

I'm wondering if there is any easier function. This question isn't suppose to be a tough one.
 
I'll bet there is one that looks less messy, given that I just kludged that one up by trial & error.
 
Thread 'Correct statement about size of wire to produce larger extension'
The answer is (B) but I don't really understand why. Based on formula of Young Modulus: $$x=\frac{FL}{AE}$$ The second wire made of the same material so it means they have same Young Modulus. Larger extension means larger value of ##x## so to get larger value of ##x## we can increase ##F## and ##L## and decrease ##A## I am not sure whether there is change in ##F## for first and second wire so I will just assume ##F## does not change. It leaves (B) and (C) as possible options so why is (C)...

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 28 ·
Replies
28
Views
6K
  • · Replies 121 ·
5
Replies
121
Views
23K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 46 ·
2
Replies
46
Views
8K
  • · Replies 80 ·
3
Replies
80
Views
9K
  • · Replies 0 ·
Replies
0
Views
2K
Replies
1
Views
2K
  • · Replies 104 ·
4
Replies
104
Views
17K