Question #60957

how many integers between 1 and 99 inclusive are divisible by either 2 or 3 or both

Expert's answer

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}A = \{a_1, a_2, \ldots, a_n\};

B = 'integers between 1 and 99 inclusive, which are divisible by 3'; B={b1,b2,,bm}B = \{b_1, b_2, \ldots, b_m\}.

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}\{c_1, c_2, \ldots, c_k\}.

Let's find the number A|\mathbf{A}| of elements in the set A:

If a1=2a_1 = 2, d=2d = 2, an=98a_n = 98, then an=a1+(n1)d=2+2(n1)=98a_n = a_1 + (n - 1)d = 2 + 2(n - 1) = 98, hence

n1=9822n - 1 = \frac{98 - 2}{2}, that is, n=1+962n = 1 + \frac{96}{2}, A=n=49|\mathbf{A}| = n = 49.

Let's find the number B|\mathbf{B}| of elements in the set B:

If b1=3b_1 = 3, e=3e = 3, bm=99b_m = 99, then bm=b1+(m1)e=3+3(m1)=99b_m = b_1 + (m - 1)e = 3 + 3(m - 1) = 99, hence

m1=9933m - 1 = \frac{99 - 3}{3}, that is, m=1+963m = 1 + \frac{96}{3}, B=m=33|\mathbf{B}| = m = 33.

Let's find the number AB|\mathbf{A} \cap \mathbf{B}| of elements in the set AB\mathbf{A} \cap \mathbf{B}:

If c1=6c_1 = 6, f=6f = 6, ck=96c_k = 96, then ck=c1+(k1)f=6+6(k1)=96c_k = c_1 + (k - 1)f = 6 + 6(k - 1) = 96, hence

k1=9666k - 1 = \frac{96 - 6}{6}, that is, k=1+906k = 1 + \frac{90}{6}, AB=k=16|\mathbf{A} \cap \mathbf{B}| = k = 16.

Thus,


A=49;B=33;AB=16.|\mathbf{A}| = 49; |\mathbf{B}| = 33; |\mathbf{A} \cap \mathbf{B}| = 16.


Let's find the number AB|\mathbf{A} \cup \mathbf{B}| of elements in the set AB\mathbf{A} \cup \mathbf{B}:


AB=A+BAB;|\mathbf{A} \cup \mathbf{B}| = |\mathbf{A}| + |\mathbf{B}| - |\mathbf{A} \cap \mathbf{B}|;AB=49+3316=66.|\mathbf{A} \cup \mathbf{B}| = 49 + 33 - 16 = 66.


Answer: 66.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS