Consider a set A = {1, 2, 3, …….., 1000}. How many members of A shall be divisible by 3 or by 5 or by both 3 and 5 ?
467
Let \(S_3\) and \(S_5\) be the members of A divisible by 3 and by 5. We need \(|S_3 \cup S_5|\), which by the inclusion–exclusion principle is \(|S_3| + |S_5| - |S_3 \cap S_5|\).
Multiples of 3 up to 1000: \(\lfloor 1000/3 \rfloor = 333\). Multiples of 5 up to 1000: \(\lfloor 1000/5 \rfloor = 200\).
A number divisible by both 3 and 5 is divisible by their LCM 15: \(\lfloor 1000/15 \rfloor = 66\). These were counted twice, so subtract them once.
Total \(= 333 + 200 - 66 = 467\). (533 is the count of numbers divisible by neither, and 66 counts only the common multiples.)
Hence, the answer is 467.
40 software professionals were interviewed for a job. 25 knew PYTHON 20 knew JAVA and 5 knew neither language. How many knew both languages ?
If cardinality of a set A is 6 and that of set B is 7 then find the Cardinality of A Δ B?
40 software professionals were interviewed for a job. 25 knew PYTHON 20 knew JAVA and 5 knew neither language. How many knew both languages ?