Why 1 cannot be the answer?


#1

although 1 satisfy both the condition ie; A%1==0 and gcd(B, 1)==1.
so why can’t 1 be the answer???


#2

Because we have to find maximum value of x that satisfy the above condition.
So it may be possible that some x which is greater than 1 also exists, like one in the example.