Is There a Surjective Function from Z+ to Z?

AI Thread 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.
 
Kindly see the attached pdf. My attempt to solve it, is in it. I'm wondering if my solution is right. My idea is this: At any point of time, the ball may be assumed to be at an incline which is at an angle of θ(kindly see both the pics in the pdf file). The value of θ will continuously change and so will the value of friction. I'm not able to figure out, why my solution is wrong, if it is wrong .
Thread 'Voltmeter readings for this circuit with switches'
TL;DR Summary: I would like to know the voltmeter readings on the two resistors separately in the picture in the following cases , When one of the keys is closed When both of them are opened (Knowing that the battery has negligible internal resistance) My thoughts for the first case , one of them must be 12 volt while the other is 0 The second case we'll I think both voltmeter readings should be 12 volt since they are both parallel to the battery and they involve the key within what the...
Thread 'Trying to understand the logic behind adding vectors with an angle between them'
My initial calculation was to subtract V1 from V2 to show that from the perspective of the second aircraft the first one is -300km/h. So i checked with ChatGPT and it said I cant just subtract them because I have an angle between them. So I dont understand the reasoning of it. Like why should a velocity be dependent on an angle? I was thinking about how it would look like if the planes where parallel to each other, and then how it look like if one is turning away and I dont see it. Since...

Similar threads

Replies
3
Views
3K
Replies
1
Views
2K
Replies
28
Views
6K
3
Replies
121
Views
22K
Replies
5
Views
2K
Replies
46
Views
8K
2
Replies
80
Views
9K
3
Replies
104
Views
16K
Back
Top