Compute how many integers between 1 to 1000 are no divisible by 2,3,5,or 7
Answers
Answered by
0
Hi there!
Here's the answer:
•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°•
SOLUTION :
Here there are two cases:
¶¶¶ Case - 1:
Both the No.s in the Given Range are Inclusive, which are divisible by 2, 3, 5, & by 7 respectively.
We want
| (A∪B∪C ∪D)' |
Now,
| (A∪B∪C ∪D)' | = | A | + | B | + | C | + | D | - | A∩B | - | B∩C | - | C∩D | + | A∩B∩C | + | B∩C∩D | + | C∩D∩A | - | A∩B∩C∩D |
= 500
= 333
= 200
= 142
= 166
= 100
= 71
= 66
= 47
= 28
= 33
= 23
= 14
= 9
= 4
So
| (A∪B∪C ∪D) | = 772
But The required answer is 1000 - 772 = 228
(As we require its complement value)
¶¶¶ Case - 2:
When both the No.s in range are excluded
1 is not divisible by 2, 3, 5 & 7 while 1000 is divisible by 5
•°• The answer is 228 - 1 = 227
•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°•
Hope it helps
Here's the answer:
•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°•
SOLUTION :
Here there are two cases:
¶¶¶ Case - 1:
Both the No.s in the Given Range are Inclusive, which are divisible by 2, 3, 5, & by 7 respectively.
We want
| (A∪B∪C ∪D)' |
Now,
| (A∪B∪C ∪D)' | = | A | + | B | + | C | + | D | - | A∩B | - | B∩C | - | C∩D | + | A∩B∩C | + | B∩C∩D | + | C∩D∩A | - | A∩B∩C∩D |
= 500
= 333
= 200
= 142
= 166
= 100
= 71
= 66
= 47
= 28
= 33
= 23
= 14
= 9
= 4
So
| (A∪B∪C ∪D) | = 772
But The required answer is 1000 - 772 = 228
(As we require its complement value)
¶¶¶ Case - 2:
When both the No.s in range are excluded
1 is not divisible by 2, 3, 5 & 7 while 1000 is divisible by 5
•°• The answer is 228 - 1 = 227
•°•°•°•°•°<><><<><>><><>°•°•°•°•°•°•
Hope it helps
Similar questions