Question:medium

The sum of the numbers from 1 to 100, which are not divisible by 3 and 5.

Show Hint

Find the sum 1 to 100, then take away the sum of multiples of 3 and the sum of multiples of 5.
Updated On: Jul 13, 2026
  • 2946
  • 2732
  • 2632
  • 2317
Show Solution

The Correct Option is D

Solution and Explanation

Step 1: Use the natural number sum formula for the whole range.
The sum of the first $n$ natural numbers is $\frac{n(n+1)}{2}$. For the numbers 1 to 100:
\[ 1+2+\cdots+100 = \frac{100\times101}{2} = 5050 \]

Step 2: Add up the multiples of 3 by factoring out the 3.
The multiples of 3 from 3 to 99 are $3\times1, 3\times2,\ldots,3\times33$, so their sum is 3 times the sum of the first 33 natural numbers:
\[ 3(1+2+\cdots+33) = 3\times\frac{33\times34}{2} = 3\times561 = 1683 \]

Step 3: Add up the multiples of 5 by factoring out the 5.
The multiples of 5 from 5 to 100 are $5\times1,\ldots,5\times20$, so their sum is 5 times the sum of the first 20 natural numbers:
\[ 5(1+2+\cdots+20) = 5\times\frac{20\times21}{2} = 5\times210 = 1050 \]

Step 4: Remove both sets from the full sum.
Take the numbers that are multiples of 3 and the numbers that are multiples of 5 out of the total 5050:
\[ 5050 - 1683 - 1050 = 2317 \]
This 2317 is the sum of every number between 1 and 100 that is not divisible by 3 and not divisible by 5.

Final Answer:
The required sum is 2317.
\[ \boxed{2317} \]
Was this answer helpful?
0


Questions Asked in XAT exam