MHB The set of integers is countable

  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Integers Set
Click For Summary
The discussion centers on proving that the set of integers, $\mathbb{Z}$, is countable by demonstrating a surjective function from $\omega^2$ to $\mathbb{Z}$. The function $f(\langle n,m \rangle) = m - n$ is established as surjective, with examples provided for integers less than, equal to, and greater than zero. Participants clarify misunderstandings about the nature of $\mathbb{Z}$ and the calculation of values for the function. The conversation emphasizes the importance of showing that for any integer $l$, there exists a pair $\langle m, n \rangle$ such that $f(\langle m, n \rangle) = l$. Overall, the proof effectively demonstrates that $\mathbb{Z}$ is indeed countable.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Smirk)

Proposition
The set $\mathbb{Z}$ of integers is countable.

Proof

$\mathbb{Z}$ is an infinite set since $\{ +n: n \in \omega \} \subset \mathbb{Z}$.

$$+n= [\langle n, 0 \rangle]=\{ \langle k,l \rangle: k+n=l\}$$

We define the function $f: \omega^2 \to \mathbb{Z}$ with $f(\langle n,m \rangle)=m-n$ that is obviously surjective.
Since $\omega^2$ is countable we conclude that $\mathbb{Z}$ is countable.In this case can we subtract two natural numbers since we define $+n= [\langle n, 0 \rangle]=\{ \langle k,l \rangle: k+n=l\}$ ?Also how could we show that $f$ is surjective?
It suffices to show that $\forall y \in m-n, \exists \langle m, n \rangle $ such that $f(\langle m, n \rangle)=m-n$, right?
How could this be shown? (Thinking)
 
Last edited:
Physics news on Phys.org
Hi evinda,

What do you mean when you say that $\Bbb Z$ is a finite set? As for the surjectivity of $f$, take any integer $l\in \Bbb Z$. If $l < 0$, then $f(1,1 - l) = l$. If $l = 0$, then $f(1,1) = l$. Finally, if $l > 0$, then $f(l+1,1) = l$.
 
Euge said:
What do you mean when you say that $\Bbb Z$ is a finite set?

That was a typo... (Tmi)

Euge said:
As for the surjectivity of $f$, take any integer $l\in \Bbb Z$. If $l < 0$, then $f(1,1 - l) = l$. If $l = 0$, then $f(1,1) = l$. Finally, if $l > 0$, then $f(l+1,1) = l$.

How did you calculate these values? (Thinking)
 
I might be misunderstanding your question, but I calculated the values using the formula for $f$.
 
Euge said:
I might be misunderstanding your question, but I calculated the values using the formula for $f$.

You pick any $l \in \mathbb{Z}$. If $l<0$ why does it hold that $m=1, n=1-l$?
 
Well, if $l < 0$, then $1-l$ is a natural number, and $ f (1,1-l) = 1-(1-l) = l $.
 
There is a nice little variation of the problem. The host says, after you have chosen the door, that you can change your guess, but to sweeten the deal, he says you can choose the two other doors, if you wish. This proposition is a no brainer, however before you are quick enough to accept it, the host opens one of the two doors and it is empty. In this version you really want to change your pick, but at the same time ask yourself is the host impartial and does that change anything. The host...

Similar threads

  • · Replies 28 ·
Replies
28
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
993