Answer on Question #60957 – Math – Discrete Mathematics
Question
How many integers between 1 and 99 inclusive are divisible by either 2 or 3 or both?
Solution
Let's determine sets A and B in the following way:
A = 'integers between 1 and 99 inclusive, which are divisible by 2'; A={a1,a2,…,an};
B = 'integers between 1 and 99 inclusive, which are divisible by 3'; B={b1,b2,…,bm}.
Thus,
A ∪ B = 'integers between 1 and 99 inclusive, which are divisible by either 2 or 3 or both';
A ∩ B = 'integers between 1 and 99, which are divisible by both 2 and 3, thus, they are divisible by 6'; A ∩ B = {c1,c2,…,ck}.
Let's find the number ∣A∣ of elements in the set A:
If a1=2, d=2, an=98, then an=a1+(n−1)d=2+2(n−1)=98, hence
n−1=298−2, that is, n=1+296, ∣A∣=n=49.
Let's find the number ∣B∣ of elements in the set B:
If b1=3, e=3, bm=99, then bm=b1+(m−1)e=3+3(m−1)=99, hence
m−1=399−3, that is, m=1+396, ∣B∣=m=33.
Let's find the number ∣A∩B∣ of elements in the set A∩B:
If c1=6, f=6, ck=96, then ck=c1+(k−1)f=6+6(k−1)=96, hence
k−1=696−6, that is, k=1+690, ∣A∩B∣=k=16.
Thus,
∣A∣=49;∣B∣=33;∣A∩B∣=16.
Let's find the number ∣A∪B∣ of elements in the set A∪B:
∣A∪B∣=∣A∣+∣B∣−∣A∩B∣;∣A∪B∣=49+33−16=66.
Answer: 66.
www.AssignmentExpert.com