• + 1 comment

    What if LCM(A) = GCD(B)+1 ? or GCD(B) - LCM(A) <<<< LCM(A) ?

    Also, step 3 seems to suggest that I must use brute force. Is that the best I can do? Or do we have a faster way to do that?

    (Just curious)