Find the sum of integers from 1 to 100 that are divisible by 2 or 5.
The integers from 1 to 100 which are divisible by 2 are:
2, 4, 6, .... 100
Here a = 2, d = 4 - 2 = 2 and an=100
∵an=a+(n−1)d
∴100=2+(n−1)2
⇒100−2=(n−1)2
⇒(n−1)=982=49
∴n=49+1=50
Now, S1=502[2+100]
=25×102=2550
Now, the integers from 1 to 100 which are divisible by 5 are 5, 10, 15, ...., 100.
Here, a = 5, d = 10 - 5 = 5 and an=100
∵an=a+(n−1)d
∴100=5+(n−1)×5
⇒100−5=(n−1)×5
⇒95=(n−1)×5
⇒(n−1)=955=19⇒n=20
∴S2=202[5+100]
=10×105=1050
Also, the integers from 1 to 100 which are divisible by both 2 and 5 are :
10, 20, 30, ...., 100
Here, a = 10, d = 20 - 10 = 10 and an=100
Since, an=a+(n−1)d
∴100=10+(n−1)10
⇒n=9+1=10
Now, S10=102[10+100]
=5×110=550
Thus, the sum of the required integers from 1 to 100 which are divisible by 2 or 5 are
(S1+S2)−S3
i.e. (2550+1050)−550=3050.