I know that $\mathbb Z$ and $\mathbb{Z}\times\mathbb{Z}$ have the same cardinality because you can create a bijection between the two. The example I was taught is Cantor's pairing function, which maps $\mathbb{N}^2\to\mathbb{N}$ like so: $\displaystyle C(x,y)=y+\frac{(x+y)(x+y+1)}{2}$, and has an inverse $C^{-1}:\mathbb{N}\to\mathbb{N}^2$ which is explained nicely on Wikipedia.
Given that $+$ is defined on $\mathbb{Z}^2$ such that $(x_1,y_1)+(x_2,y_2)=(x_1+x_2,y_1+y_2)$ (i.e. simple vector addition), I was trying to draw some sort of a relation between the sums of integers and the sums of the pairs they map to using the pairing function. I honestly can't see much of a pattern, but I'm willing to conjecture that:
$C^{-1}(a + b) = C^{-1}(a) + C^{-1}(b)$ is true if and only if a or b is $0$
I'm not sure how to prove that, but I have a hunch that it somehow relates to the answer of my actual question:
Is there a function $f:\mathbb{Z}\to\mathbb{Z}\times\mathbb{Z}$ such that:
- $f^{-1}:\mathbb{Z}\times\mathbb{Z}\to\mathbb{Z}$ exists
- $\forall a,b \in \mathbb{Z}, f(a+b) = f(a)+f(b)$
- $\forall a,b \in \mathbb{Z}\times\mathbb{Z}, f(a+b) = f(a)+f(b)$
Can I have a bijective group homomorphism from the integers to pairs of integers?