$6247x \equiv 1139 \pmod{9461}$, where $9461$ is a prime number
I just started learning modular equations and I have no idea how to solve this advanced questions.
$6247x \equiv 1139 \pmod{9461}$, where $9461$ is a prime number
I just started learning modular equations and I have no idea how to solve this advanced questions.
I will show the method step by step for a much easier example :
$$33x\equiv 41\mod 101$$
$$101=3\cdot 33+2$$
$$33=16\cdot 2+1$$
$$2=2\cdot 1+0$$
Therefore, $gcd(33,101)=1$ and the extended algorithm gives
$$1=33-16\cdot 2=33-16\cdot (101-3\cdot 33)=49\cdot 33-16\cdot 101$$
Therefore $33^{-1}=49$ in $\mathbb Z_{101}$
So, the solution is $$x=41\cdot 49=2009\equiv 90\mod 101$$
If you get a negative number $a$ , you can choose $p+a$ instead to get a positive solution. (Here $p=101$ , so if the result would have been $-40$, we could have used $-40+101=61$ instead).
The modulus $p$ need not be a prime number. The method works always , if the $gcd$ is $1$.