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.
 
The book claims the answer is that all the magnitudes are the same because "the gravitational force on the penguin is the same". I'm having trouble understanding this. I thought the buoyant force was equal to the weight of the fluid displaced. Weight depends on mass which depends on density. Therefore, due to the differing densities the buoyant force will be different in each case? Is this incorrect?

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
10K
  • · Replies 0 ·
Replies
0
Views
2K
Replies
1
Views
2K
  • · Replies 104 ·
4
Replies
104
Views
17K