I had previously figured out injectivity/surjectivity on basic functions but I am stumpted when it comes to showing functions which are cartesian products are injective/surjective.
The first one: $$f: \Bbb{Z} \to \Bbb{Z}\times\Bbb{Z},$$ where $\Bbb{Z}$ is integers set.
$$f(n) = (2n, n+3)$$
I had shown that f was injective by contrapositive:
suppose $f(x) = f(y)$
then $(2x, x+3) = (2y, y+3)$
but I am unsure if this proof is complete..
When showing onto, I could not think of any counter examples. When dealing with basic functions I would just show that $f(x) = y$ but I am unsure how to show that with cartesian products.