Open In App

Algorithms Quiz | SP2 Contest 1 | Question 36

How many numbers are there in between 300 and 800 which are divisible by 2,3 and 7?

(A) 9
(B) 10
(C) 11
(D) 12

Answer: (D)
Explanation: First-term which is divisible by 2,3 and 7 is 336, i.e., a = 336.
The common difference(d) is 42 since number which is divisible by 42 will divisible by 2,3 and 7.
Now, 798 is last term which is divisible by 42.
798 = 336 + (N – 1) * 42
N = 12.
So, option (D) is correct.

Quiz of this Question

Article Tags :