I was wondering if someone could give me some more intuition on why we need that $\gcd(a,n)$ divides $b$ when we want to solve $ax\equiv b\pmod{n}$?
2026-03-27 00:05:10.1774569910
Necessity of the condition $\gcd(a,n)$ divides $b$ for solving $ax\equiv b\pmod{n}$?
103 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
Hint $ $ If solvable then $\ ax+cn = b\ $ so $\,d\mid a,n\,\Rightarrow\, d\mid b,\,$ i.e. a common divisor $\,d\,$ of $\,a,n\,$ must divide $\,b\,$ if a solution $\,x\,$ exists.