137k views
0 votes
Use the principle of inclusion and exclusion to find the number of positive integers less than 1,000,000 that are not divisable by 6 or 4

User Cory Loken
by
7.4k points

1 Answer

4 votes
This is a simple problem based on combinatorics which can be easily tackled by using inclusion-exclusion principle.
We are asked to find number of positive integers less than 1,000,000 that are not divisible by 6 or 4.
let n be the number of positive integers.
∴ 1≤n≤999,999
Let c₁ be the set of numbers divisible by 6 and c₂ be the set of numbers divisible by 4.
Let N(c₁) be the number of elements in set c₁ and N(c₂) be the number of elements in set c₂.

∴N(c₁) =
(999,999)/(6) = 166666
N(c₂) =
(999,999)/(4) = 250000
∴N(c₁c₂) =
(999,999)/(24) = 41667
∴ Number of positive integers that are not divisible by 4 or 6,

N(c₁`c₂`) = 999,999 - (166666+250000) + 41667 = 625000
Therefore, 625000 integers are not divisible by 6 or 4
User Andrea Gottardo
by
7.8k points

Related questions

asked Sep 15, 2024 96.9k views
Vimal Dhaduk asked Sep 15, 2024
by Vimal Dhaduk
8.2k points
2 answers
5 votes
96.9k views
asked Nov 8, 2024 32.2k views
Yorro asked Nov 8, 2024
by Yorro
8.4k points
1 answer
5 votes
32.2k views
asked May 17, 2024 215k views
Gatlingxyz asked May 17, 2024
by Gatlingxyz
8.7k points
1 answer
1 vote
215k views