2

So I know how to prove a function is onto if it has 1 variable. But this one has two and I'm confused about how to approach it.

$f: \mathbb{Z} \times \mathbb{Z} \to \mathbb{Z}$ such that for any $(x,y) \in \mathbb{Z} \times \mathbb{Z}$

$f(x,y) = ax + by$

E 4 6
  • 243

2 Answers2

1

If $a$ and $b$ are coprime then there are $\alpha\in\mathbb Z$ and $\beta\in \mathbb Z$ such that $1=\alpha a+\beta b$, then for $z\in \mathbb Z$ $z=z\alpha a+z\beta b = f(z\alpha,z\beta)$.

alex
  • 795
1

To prove that a function $f:A\to B$ is onto, we need to show that for every $b \in B$, there exists an $a \in A$ such that $f(a) = b$. In this case, we need to show that for every $z \in \mathbb{Z}$, the equation $$ f(x,y) = z \implies ax + by = z $$ has a solution with $(x,y) \in \mathbb{Z \times Z}$.

Ben Grossmann
  • 225,327