Clear Notion Academy

Sets, Relations and Functions (Beyond Advanced) Practice: How many positive integers not exceeding 1000 are divisible by exactly two of the three…

Question

How many positive integers not exceeding 10001000 are divisible by exactly two of the three numbers 44, 66 and 1010?

Answer

Answer: 118

Hint

Intersections of 'multiples of' sets are 'multiples of the lcm' sets. Be careful what the triple overlap does to a count of exactly two.

Solution

Let A,B,CA,B,C be the multiples of 4,6,104,6,10 up to 10001000. Then A∩BA\cap B = multiples of 1212 (8383), A∩CA\cap C = multiples of 2020 (5050), B∩CB\cap C = multiples of 3030 (3333), and A∩B∩CA\cap B\cap C = multiples of lcm(4,6,10)=60\mathrm{lcm}(4,6,10)=60 (1616). The numbers in exactly two sets: each pairwise intersection includes the triple intersection, so the count is ∑∣pair∣−3∣A∩B∩C∣\sum|\text{pair}|-3|A\cap B\cap C|. 83+50+33−3⋅16=166−48=11883+50+33-3\cdot16=166-48=118. Using ∑∣pair∣−∣A∩B∩C∣=150\sum|\text{pair}|-|A\cap B\cap C|=150 would wrongly keep numbers divisible by all three, which are not 'exactly two'.

More questions from Sets, Relations and Functions (Beyond Advanced) Practice

Practise the full set: Sets, Relations and Functions — Beyond Advanced