The sum of integers from 1 to 100 should be divisible by 2 or 3 is:
A
1683
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4233
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
3417
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
816
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is C3417 formulaused 1+2+3+4+...........+n=n(n+1)2 sumofintegers that are divisible by 2 between1and100 2+4+6+........100 S1=2(1+2+3+.......+50) =2(50)(51)2 =2550 sum of integers that are divisible by 3 3+6+9+........+99 S2=3(1+2+3+.........+33) =3(33)(34)2 =1683 Sum of integers that are divisible by both 2 and 3 6+12+18+...........96 S3=6(1+2+3+.........+16) =6(16)(17)2 =816 Bysettheory n(A∩B)=n(A)+n(B)−n(A∪B) =2550+1683−816 =3417