Let $a, b \in ℤ$. Consider the following function: $f : ℤ \times ℤ \to ℤ$ such that for any $(x,y)∈ ℤ \times ℤ, f(x,y) = ax + by.$
Fill in the blank in the following proposition with a simple condition on a and b, and then prove the proposition.
Proposition 1. The function f is onto if and only if _____.
Would I get full marks for this answer?
Iff $a$ and $b$ are relatively prime (or coprime, or gcd$(a,b) =1$).
Then there exist $x$ and $y$ in $\Bbb Z$ so that $ax + by = 1$. From this we can generate all of Z to get an onto function.
I'm just wondering because my teacher said it was challenging but it seems straightforward.