The Venn Diagram Mindset
To identify the numbers between 1 and 100 divisible by 2 or 5, we visualize two sets: Set A containing multiples of 2, and Set B containing multiples of 5. We seek the sum of the elements in the union of these two sets.
If we simply add the sum of Set A to the sum of Set B, we encounter a classic trap. The numbers divisible by both 2 and 5 (the intersection) are counted twice.
To correct this, we apply the Principle of Inclusion-Exclusion. We must calculate the sum of the first set, add the sum of the second set, and subtract the sum of the intersection to balance the scales.
The Machinery of Arithmetic Progressions
A sequence such as 2,4,6,…,100 is an Arithmetic Progression (A.P.). The sum of an A.P. is governed by the formula:
Here, n is the number of terms, a is the first term, and l is the last term.
For multiples of 2, we have a=2, l=100, and n=2100=50. The sum is:
S2=250(2+100)=25×102=2550
For multiples of 5, we have a=5, l=100, and n=5100=20. The sum is:
S5=220(5+100)=10×105=1050
The Correction
The numbers divisible by both 2 and 5 are the multiples of their Least Common Multiple, which is 10. These numbers (10,20,…,100) were included in both S2 and S5.
We must subtract this intersection once to correct our total. This sequence has n=10100=10 terms.
S10=210(10+100)=5×110=550
The Final Synthesis
We now combine these results using the inclusion-exclusion principle: STotal=S2+S5−S10.
Substituting our calculated values:
The final answer is 3050. This result is derived not by brute force, but by the elegant application of logic and pattern recognition.