Linear equation over $\mathbb{Z}/n\mathbb{Z}$

41 Views Asked by At

For given $a,b\in \mathbb{Z}/n\mathbb{Z}$ is there a criterion which allows one to determine whether there exists $x\in \mathbb{Z}/n\mathbb{Z}$ with $ax=b$?

2

There are 2 best solutions below

0
On BEST ANSWER

There is a solution if and only if the greatest common divisor of $a$ and $n$ is a factor of $b$.

0
On

Yes. You want to see whether there exist $x$ and $y$ such that $$ ax+ny=b $$ (using for $a$ and $b$ representatives of the given elements in $\mathbb{Z}/n\mathbb{Z}$).

What does Bézout's theorem say?

Hint: consider the greatest common divisor of $a$ and $n$.