edited by
11,643 views
25 votes
25 votes
The number of integers between $1$ and $500$ (both inclusive) that are divisible by $3$ or $5$ or $7$ is ____________ .
edited by

9 Answers

8 votes
8 votes

Here ,we can find:

$|A| = \left \lfloor \frac{500}{3} \right \rfloor = 166$

$|B| = \left \lfloor \frac{500}{5} \right \rfloor = 100$

$|C| = \left \lfloor \frac{500}{7} \right \rfloor = 71$

$|A\cap B| = \left \lfloor \frac{500}{LCM(3,5)} \right \rfloor =\left \lfloor \frac{500}{15} \right \rfloor = 33 $

$|B\cap C|  = \left \lfloor \frac{500}{LCM(5,7)} \right \rfloor =\left \lfloor \frac{500}{35} \right \rfloor = 14 $

$|A\cap C| = \left \lfloor \frac{500}{LCM(3,7)} \right \rfloor =\left \lfloor \frac{500}{21} \right \rfloor = 23 $

$|A\cap B \cap C| = \left \lfloor \frac{500}{LCM(3,5,7)} \right \rfloor =\left \lfloor \frac{500}{105} \right \rfloor = 4 $

Now we,can Apply Principle of Inclusion - Exclusion:

$(|A| \cup |B| \cup |C|) = |A| + |B| + |C|- | A\cap B| - | B\cap C| - | A\cap C| + | A\cap B\cap C|$

 

Put the values:

$(|A| \cup |B| \cup |C|) = 166+100+71-33-14-23+4$

$(|A| \cup |B| \cup |C|) = 341-70$

$(|A| \cup |B| \cup |C|) = 271$

 Number 1 to 500 is not divisible by either 2,3 or 5:

${(|A| \cup |B| \cup |C|)}' = N(U) - (|A| \cup |B| \cup |C|)$

${(|A| \cup |B| \cup |C|)}' = 500-271$

${(|A| \cup |B| \cup |C|)}' =229$

So, the number of integers between $1$ and $500$ (both inclusive) that are divisible by $3$ or $5$ or $7$ is $:271$ 

4 votes
4 votes
by applying the Principle of Inclusion and Exclusion. Note that all divisions are to be rounded down to the nearest integer.

N = [ 500/3 + 500/5 + 500/7 ] - [ 500/15 + 500/35+ 500/21 ] + [ 500/(105) ]

= 166+100+71 - (33+14+23) + 4 = 271

if the question is of divisible then ans is 271.

if the question is of not divisible then its

500-271=229
edited by
0 votes
0 votes
first no which are divisible by 3 = lwowershield(500/3)+lwowershield(500/5)+lwowershield(500/7)-lwowershield(500/3*5)-lwowershield(500/3*7)-lwowershield(500/5*7)+lwowershield(500/3*7*5)=result

 

now to find not divisible by = 500-result
0 votes
0 votes
Okay,Now in this question concept of the Inclusion-Exclusion  comes into play.how we are getting the formula?

simple formula

P(AUB)=P(a)+P(b)+P(c)-P(ab)-P(bc)-P(ca)+P(abc)

so

 [ 500/3 + 500/5 + 500/7 ] - [ 500/15 + 500/35+ 500/21 ] + [ 500/(105) ]

=271

so 271 should be correct answer
Answer:

Related questions