Sum of Positive Integers Less Than 150 Not Multiples of 5 or 7

AI Thread Summary
To find the sum of positive integers less than 150 that are not multiples of 5 or 7, first calculate the sum of integers from 1 to 149. Next, determine the sum of multiples of 5 up to 145, the sum of multiples of 7 up to 147, and the sum of multiples of 35 up to 140. The final result is obtained by subtracting the sums of multiples of 5 and 7 from the total sum and adding back the sum of multiples of 35 to correct for double subtraction. This method ensures an accurate calculation of the desired sum.
Michael_Light
Messages
112
Reaction score
0

Homework Statement



Find the sum of the positive integers which are less than 150 and are not multiples of 5 or 7.


Homework Equations





The Attempt at a Solution



I tried it... Can anyone give me some hints or tips...?
 
Physics news on Phys.org
Find:
A) The sum of the positive integers from 1 to 149,
B) The sum of the multiples of 5 from 5 to 145,
C) The sum of the multiples of 7 from 7 to 147,
D) The sum of the multiples of 35 from 35 to 140.

Then, your final answer will be A - B - C + D. (We have to add the answer in D because by subtracting the answers in B and C, we are removing the multiples of 35 twice.)
 
Back
Top