Step 1: Identify numbers divisible by 2 or 5 in the range [1,100].
- Numbers divisible by 2: 2, 4, 6, ..., 100 (Arithmetic sequence)
First term (a) = 2, Common difference (d) = 2, Last term = 100
Number of terms (n) = \(\frac{100 - 2}{2} + 1 = 50\)
Sum = \(\frac{50}{2} \times (2 + 100) = 2550\)
- Numbers divisible by 5: 5, 10, 15, ..., 100
First term (a) = 5, Common difference (d) = 5, Last term = 100
Number of terms (n) = \(\frac{100 - 5}{5} + 1 = 20\)
Sum = \(\frac{20}{2} \times (5 + 100) = 1050\)
Step 2: Avoid double-counting numbers divisible by both 2 and 5 (i.e., 10).
- Numbers divisible by 10: 10, 20, 30, ..., 100
First term (a) = 10, Common difference (d) = 10, Last term = 100
Number of terms (n) = \(\frac{100 - 10}{10} + 1 = 10\)
Sum = \(\frac{10}{2} \times (10 + 100) = 550\)
Step 3: Apply Inclusion-Exclusion Principle
Total sum = (Sum of multiples of 2) + (Sum of multiples of 5) - (Sum of multiples of 10)
\(2550 + 1050 - 550 = 3050\)
Final Answer: 3050