wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Find the sum of integers from 1 to 100 which are divisible by 2 or 3.

A
3412
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
3417
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
3422
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
3401
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 3417
The numbers which are divisible by 2 from 1 to 100 are
2, 4, ... 98, 100.

The numbers which are divisible by 3 from 1 to 100 are
3, 6, ... 96, 99.

In the above series, the numbers that are multiple of both 2 and 3 (i.e. 6), occur twice.
Therefore,
Sum of integers which are divisible by 2 or 3 from 1 to 100
= (Sum of integers divisible by 2 from 1 to 100) + (Sum of integers divisible by 3 from 1 to 100) − (Sum of integers divisible by 6 from 1 to 100)

= (2 + 4 + .... + 100) + (3 + 6 + .... + 99) − (6 + 12 + ... 96)
= 2(1 + 2 + .... + 50) + 3(1 + 2 + ... +33) − 6(1 + 2 + .... + 16)
= 2×(50×512) + 3×(33×342) - 6×(16×172)
[ Sum of first n natural numbers = n(n+1)n]
= 2550 + 1683 − 816
= 4233 − 816
= 3417

flag
Suggest Corrections
thumbs-up
8
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Data Collection
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon