0

I have the following:

$$ab \pmod x = 1.$$

$a$ and $b$ are known. Is there an efficient procedure to find the largest possible value of $x$?

Edit: What if $a$ and $b$ are too large to factor efficiently though?

Matt
  • 1
  • 2

1 Answers1

3

$ab-1\equiv0\pmod x$. So what's the largest factor of $ab-1$?

Mike
  • 13,318