Letand let . Then the sum of all the elements of is ______.
Solution
Core idea. Conditions of evenness and coprimality combine into multiples of products, handled by inclusion and exclusion.
Concept refresher. The multiples of up to are , where is the whole part of , and their sum is
Picture the situation. Since , the set consists of the numbers divisible by neither 3 nor 5. The set is the even numbers from 2 to 200. So is the even numbers up to 200 with the multiples of 6 and of 10 removed; the multiples of 30 belong to both groups.
Approach. Subtract the sums of the multiples of 6 and of 10 from the sum of the even numbers, and add back the multiples of 30.
Step 1: The sums
The even numbers up to 200 add to . The multiples of 6 add to , those of 10 to and those of 30 to .
Step 2: The required sum
The multiples of 30 are removed twice, so they are added back once: .
Answer. 5264
Sanity check. About of the even numbers survive, and is about 5387, close to the result.
Common wrong answers
- 4634: Forgetting to add back the multiples of 30 gives 4634.
Key takeaway
The trap. The common multiples are subtracted twice and must be added back once.
How toppers think. They estimate the surviving fraction to check the size of the result.
Remember.
More on Set Operations & Venn Diagrams
- Let A = {x: |x² - 10| ≤ 6} and B = {x: |x - 2| > 1}. Then
- Let S = {p₁, p₂, …, p₁₀} be the set of first ten prime numbers. Let A = S ∪ P, where P is the set of all…
- Let A = {x ∈ (0, π) - {π/2}: log(2/π)|sin x| + log(2/π)|cos x| = 2} and B = {x ≥ 0: √(x)(√(x) - 4) - 3|√(x)…
- All 31 on Set Operations & Venn Diagrams ›