We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.

In that case my friend, please explain me this.
lets consider set A to be {2, 4} and set B to be {20, 40} then LCM of set A is 4 and GCD of set B is 20.
Now according to point 3 of yours, answer will be 1 as there is only one multiple of 4(i.e. 4 itself) that evenly divides 20.
but i thnik it must include 8 also as it satisfies both the condition given in the problem statement.

## Between Two Sets

You are viewing a single comment's thread. Return to all comments →

In that case my friend, please explain me this. lets consider set A to be {2, 4} and set B to be {20, 40} then LCM of set A is 4 and GCD of set B is 20. Now according to point 3 of yours, answer will be 1 as there is only one multiple of 4(i.e. 4 itself) that evenly divides 20. but i thnik it must include 8 also as it satisfies both the condition given in the problem statement.

Please read the problem description carefully. Specially the conditions.

Now look at the condition-2, Do you think 8 is a factor of all elements in B{20, 40}?

Another thing, the answer for your test case will not be

1, it will be2as multiples are4and20(you excluded20).oh. my bad. thank you for clarification.