2

Suppose I know that for some values $x,a,b$ that $$ x \equiv 0\pmod a $$ $$ x \equiv k\pmod b. $$

Is there a simple expression that I can use to get the value of $x$ $\pmod{ab}$ assuming that $a,b$ are coprime?

I know from prior threads that I can use the extended euclidean algorithm to find this value, however I wanted to know if the additional information that $x=0\mod a$ can make it so we can get a solution without having to run the algorithm and rather just evaluate some expression

Thomas Andrews
  • 177,126
wjmccann
  • 3,085

0 Answers0