find the sum of integers from 1 to 100 which are divisible by 2 or 3
Answers
Answered by
2
Answer:
Sum of the integers that are divisible by 2:
2+4+6+…+100
=2(1+2+3+...+50)
=2(50*51)/2
=2550
Sum of the integers that are divisible by 3:
3+6+9+…+99
=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
=6(1+2+3+...+16)
=6∗(16∗17)/2
=816
Similar questions