75,491 views
9 votes
9 votes
Find the sum of all the integers from 1 to 100 inclusive that are not
Multiples of 7.

User LauraT
by
3.1k points

1 Answer

7 votes
7 votes

Explanation:


\text{Denote The sum of all the integers from 1 to 100 inclusive that are NOT multiples of 7 as } S.


\text{Denote The sum of all the integers from 1 to 100 inclusive that are multiples of 7 as } P.


\text{Denote The sum of all the integers from 1 to 100 inclusive as } Q.

Then


\begin{align}S&=Q-P\\&=(100(100+1))/(2)-(7+2\cdot7+\ldots+14\cdot7)\\&=(100(100+1))/(2)-7\cdot(14(14+1))/(2)\\&=4315\end{align}

User Dominik Matis
by
3.0k points