Find the sum of the positive integers which are less than 150 and are not multiples of 5 or 7. Can anyone help me?

Printable View

- February 28th 2011, 12:29 AMMichaelLightArithmetic Progression
Find the sum of the positive integers which are less than 150 and are not multiples of 5 or 7. Can anyone help me?

- February 28th 2011, 01:04 AMCaptainBlack
- February 28th 2011, 01:11 AMemakarov
Already started typing this...

You can use Inclusion-Exclusion Principle. (You don't know much about it; it's mostly common sense.) Let A = {1, ..., 149}, B = {5, 10, 15, ..., 145} (multiples of 5) and C = {7, 14, 21, ..., 147} (multiples of 7). Let |X| denote the number of elements in the set X. Then the answer is . Further, . In all this, denotes set difference, denotes union and denotes intersection. Since 5 and 7 are coprime, and imply for all . Here means divides . Therefore, .