Find the sum of all natural numbers which are multiples of or or both and lie between and .
Step 1: Solve for the sum of a multiple of between and
The sum is calculated in the following way.
where,
is the sum of all multiples of between and
is the sum of all multiples of between and
is the sum of all multiples of between and
is an AP with first term and common difference and last term
last term of an AP is
Now solving further,
Sum of an AP
Step 2: Solve for the sum of a multiple of between and
Similarly, and is an AP having the first term , common difference and last term respectively
for
Step 3: Solve for the sum of a multiple of between and
for
Step 4: Solve for the sum of a multiple of or between and
Hence, the sum of all natural numbers which are multiples of or or both, and lie between and is .