4

$\fbox{$13x + 1 \equiv 0 \pmod {100}$}$

I solved the equation above by trying different multiples to isolate $x$ until I found something that worked. I have two questions:

$\fbox{$1.$}\ $ What if there was no solution for $x$? How would I be able to prove it?

$\fbox{$2.$}\ $ Are there a set of steps that I could program a computer to follow and get an answer if other similar modular equations are inputted?

My solution is below:

$13x +1 \equiv 0 \pmod {100}$

$13x \equiv 99 \pmod {100}$ (added $99$ to both of equation and applied the $\mod 100$ to the left side)

$104x \equiv 792 \pmod {100}$ (multiplied both sides by $8$)

$4x \equiv 792 \pmod {100}$ (removed a $100$ from the left side)

$x \equiv 198 \pmod {100}$ (divided both side by $4$)

Like I said, I believe I got the right solution but only through trial and error. I was wondering if there is a more systematic way of solving these problems.

Thank you for any help.

Dan
  • 49
  • For different modular equations, we can check if it holds certain modular properties or not to confirm the existence of solutions. Here, for example, the equation is $13x + 1 \equiv 0 \pmod{100}$ $\implies 13x \equiv -1 \pmod{100}$. Since $13$ is co-prime to $100$, it obliviously has a solution for $13x \equiv 1 \pmod{100}$ (existence of inverse). Replace $x$ with $-x$ and you're done. – thesagniksaha Dec 15 '18 at 09:22
  • https://math.stackexchange.com/questions/3040108/what-are-the-integral-solutions-of-239x-111y-1#comment6268260_3040108 – lab bhattacharjee Dec 15 '18 at 09:27
  • The current answers failed to point out that your attempt was completely incorrect. In particular, your last step (division by $4$) is invalid. Counter-example: $4·31 \equiv 24$ mod $100$ but $31 \not\equiv 6$ mod $100$. At one point you multiplied by $8$, which has a common factor with $100$, so it became irreversible (and the resulting equations have more solutions). – user21820 Dec 15 '18 at 17:49