Let $a,b\in\mathbb{Z} \backslash \{0\}$. Show that
$a\mid b$, $b\mid a$ $\implies a=\pm b$.
I can see why this is true, but not write it down.
Let $a,b\in\mathbb{Z} \backslash \{0\}$. Show that
$a\mid b$, $b\mid a$ $\implies a=\pm b$.
I can see why this is true, but not write it down.
If $a|b, b=an$ where $n$ is an integer
Similarly, $b|a\implies a=bm$ where $m$ is an integer
$\implies ab=abmn\iff mn=1$
But $m,n$ are integers, so what are the possible values of $m,n?$
$a=tb$ and $b=sa$ gives $a=tsa$, which means $ts=1$. Now, $t$ and $s$ are both integers, so...
If $a|b$ then $|a|\leq |b|$. Similarly $b|a$ implies $|b|\leq |a|$. So $a=b$ or $a=-b$.