Question
Question: The sum of integers from 1 to 100 which is not divisible by 3 or 5 is \( a.{\text{ }}2849 \\\ ...
The sum of integers from 1 to 100 which is not divisible by 3 or 5 is
a. 2849 b. 4375 c. 2317 d. 2632
Solution
Hint: - Sum of numbers which is not divisible by 3 or 5 is = sum of all numbers - sum of numbers which is divisible by 3 - sum of numbers which is divisible by 5 + sum of numbers which is divisible by both 3 and 5
The set of numbers which is divisible by 3 from 1 to 100 is \left\\{ {3,6,9,.................,99} \right\\}
As you see this series form an A.P with its first term(a1=3), last term (al=99)and common difference (d=6−3=3)
Therefore number of terms in this series is
al=a1+(n−1)dWhere n is the number of terms.
⇒99=3+(n−1)3 ⇒n−1=32 ⇒n=33
So, the sum of this series is
Sn=2n(a1+al) ⇒Sn=233(3+99)=233×102=1683
The set of numbers which is divisible by 5 from 1 to 100 is \left\\{ {5,10,15,.................,100} \right\\}
As you see this series form an A.P with its first term(a1=5), last term (al=100)and common difference (d=10−5=5)
Therefore number of terms in this series is
al=a1+(n−1)dWhere n is the number of terms.
⇒100=5+(n−1)5 ⇒n−1=19 ⇒n=20
So, the sum of this series is
Sn=2n(a1+al) ⇒Sn=220(5+100)=10×105=1050
The set of numbers which is divisible by both 3 and 5.
Therefore L.C.M of 3 and 5 is 15
The set of numbers which is divisible by 15 from 1 to 100 is \left\\{ {15,30,.................,90} \right\\}
As you see this series form an A.P with its first term(a1=15), last term (al=90)and common difference (d=30−15=15)
Therefore number of terms in this series is
al=a1+(n−1)dWhere n is the number of terms.
⇒90=15+(n−1)15 ⇒n−1=5 ⇒n=6
So, the sum of this series is
Sn=2n(a1+al) ⇒Sn=26(15+90)=3×105=315
The sum of numbers from 1 to 100.
Total number of terms from 1 to 100 is 100.
Sn=2n(a1+al) ⇒Sn=2100(1+100)=50×101=5050
Therefore Sum of numbers which is not divisible by 3 or 5 is = sum of all numbers – sum of numbers which is divisible by 3 – sum of numbers which is divisible by 5 + sum of numbers which is divisible by both 3 and 5
⇒S=5050−1683−1050+315=2632
Hence, option (d) is correct.
Note: - In such types of question always remember some of the basic formulas of A.P which is stated above, then calculate the sum of all the series which is divisible by 3 , 5 and both, then using the formula which is stated above we will get the required sum which is divisible by 3 or 5.