The sum of the integers from to which are not divisible by or is
Explanation for the correct option:
Step 1: Calculate the sum of the first natural numbers
Sum of first natural numbers
Sum of first natural numbers
Step 2: Calculate the sum of multiples of upto
Integers divisible by upto are
These are in arithmetic progression (AP).
General form of an AP is
Where, is the first term, is common difference, and is the th term.
Sum of an AP is given as
Thus, the sum of the multiples of is
Step 3: Calculate the sum of multiples of upto
Integers divisible by upto are
These are in arithmetic progression (AP). Thus, from the general formula for th term of an AP,
Thus, the sum of the multiples of is
Step 4: Find the sum of multiples of and upto
Integers divisible by upto are
These are in arithmetic progression (AP). Their common difference is .
Thus, from the general formula for th term of an AP,
The sum of the multiple of and is
Step 5: Find the required sum
So, the sum of integers from to which are not divisible by or The sum of the first natural numbers
the sum of multiples of the sum of multiples of
the sum of the multiples of both and
(Since the terms divisible by and are accounted for in their respective multiples, they get subtracted twice. Thus, we need to add them once)
Hence, the correct option is D.