For this problem $a,b,n\in\Bbb{Z},n\ge 1$
Prove that there exist integers $r,s$ such that $ar+ns=1$ if and only if there exists a non-zero integer $b$ such that $ab\equiv 1 \pmod n$
So far this is my proof:
$(\impliedby)$ Assume $\exists$ a non-zero integer b such that $ab\equiv 1\pmod n$
(Want to show there exists integers $r,s$ such that $ar+ns = 1$).
By assumption, $n|ab-1\implies ab-1=ns$, where $s$ is an integer.
I am not sure what to do next I see that I can get the $1$ on the right hand side but how do I bring in $r$ in the equation. Also because it is a biconditional proof I know I need to show the other way as well but I am stuck.
\pmod{n}
to get the parenthetical “mod n” with proper spacing. – Arturo Magidin Sep 02 '20 at 02:43