Question

In: Statistics and Probability

How many numbers between 1 and 500 (including 1 and 500) are not divisible by any...

How many numbers between 1 and 500 (including 1 and 500) are not divisible by any of 3, 5, or 7? Your solution should be worked all the way out into an integer.

Solutions

Expert Solution

Let A, B and C be the set of numbers between 1 and 500 that are divisible by 3, 5 and 7 respectively.

n(A) = [500/3] = 166

n(B) = [500/5]= 100

n(C) = [500/7] = 71

Simply adding up all these numbers would not help us form our solution. Notice that numbers which are multiples of LCM of 3 and 5 are counted twice. So are multiples of LCM of 3 and 7, and 5 and 7. Multiples of LCM of 3, 5 and 7 are counted thrice!

We need to make sure that each number is counted exactly once. The cardinality of union of sets A, B and C yields precisely that!

n(A ∩ B) = [500/15] = 33

n(B ∩ C) = [500/35] = 14

n(A ∩ C) = [500/21] = 23

n(A ∩ B ∩ C) = [500/105] = 4

= 271

So, there are 271 numbers between 1 and 500 that are divisible by either 3 or, 5 or, 7.

There are numbers between 1 and 500 (including 1 and 500) are not divisible by any of 3, 5, or 7 is

(500-271) = 229.

*****If you have any queries or doubts please comment below, if you're satisfied please give a like. Thank you!


Related Solutions

How many numbers between 9 and 3009 are divisible by 2, 5, or 11? Please answer...
How many numbers between 9 and 3009 are divisible by 2, 5, or 11? Please answer correctly. Thanks
DISCRETE MATH a. How many integers between 1 and 1000 are divisible by either 7 or...
DISCRETE MATH a. How many integers between 1 and 1000 are divisible by either 7 or 11? b . How many integers between 1 and 1000 have distinct digits? c .A student council consists of 15 students. Two council members always insist on serving on committees together. If they cannot serve together, they will not serve at all. How many ways can a committee of six be selected from the council membership? d. A set of five distinct computer science...
Write a program that counts how many Fibonacci numbers are divisible by 3 and smaller than...
Write a program that counts how many Fibonacci numbers are divisible by 3 and smaller than 1000. The program prints the resulting number. You may only use while loops. Use python language
Write a program that counts how many Fibonacci numbers are divisible by 3 and smaller than...
Write a program that counts how many Fibonacci numbers are divisible by 3 and smaller than 1000. The program prints the resulting number. You may only use while loops. Use python language
how many 4 digit numbers divisible by 5 can be formed from 0,1,3,5,7,9 if repetition is...
how many 4 digit numbers divisible by 5 can be formed from 0,1,3,5,7,9 if repetition is not allowed and 0 and 1 Can not be next to each other. i can do the first part. there are 2 cases case 1, the number ends in zero. 5 x 4 x 3 x 1. but i dont know how to account for the zero and one not being able to be next to each other. i counted 12 possible numbers that...
Question#1 How many positive integers between 100 and 888 inclusive, a) are divisible by 7? b)...
Question#1 How many positive integers between 100 and 888 inclusive, a) are divisible by 7? b) are odd? c) have distinct digits? d) are not divisible by 6? e) are divisible by either 4 or 7? f) are not divisible by either 4 or 7? g) are divisible by 4 but not by 7? h) are divisible by 4 and 7? Question#1 How many positive integers between 100 and 888 inclusive, a) are divisible by 7? b) are odd? c)...
1. (a) How many integers from 197 to 603 are divisible by 4? (b) How many...
1. (a) How many integers from 197 to 603 are divisible by 4? (b) How many integers from 97 to 995 are divisible by 6? (c) If the largest of 87 consecutive integers is 255 then what is the smallest? 2. Compute the following: (a)9! (b)P(15,8) (c)8! (d)P(3,6)
Write an algorithm that print all numbers that are divisible by 3 between 1000 and 2000
Write an algorithm that print all numbers that are divisible by 3 between 1000 and 2000
Write a C++ program that displays the numbers between 1000 and 9999, which are divisible by...
Write a C++ program that displays the numbers between 1000 and 9999, which are divisible by sum of the digits in them. For example, 2924 is divisible by (2+9+2+4 = 17). Your program should display all these possible numbers in the given range, and each number should be separated from the other by a space.
(Prime Numbers) An integer is said to be prime if it is divisible by only 1...
(Prime Numbers) An integer is said to be prime if it is divisible by only 1 and itself. For example, 2, 3, 5 and 7 are prime, but 4, 6, 8 and 9 are not. Write pseudocode and function called isPrime that receives an integer and determines whether the integer is prime or not. Write a test program that uses isPrime to determine and print all the prime numbers between 1 and 1000. Display 10 numbers per line. Twin primes...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT