Question #62173

Determine the number of positive integers x, where x <100 and x is divisible by 2,3 or 5

Expert's answer

Answer on Question #62173 – Math – Discrete Mathematics

Question

Determine the number of positive integers xx, where x<100x < 100 and xx is divisible by 2, 3 or 5.

Solution

Method 1

The first positive integer divisible by 2 is 2=212 = 2 \cdot 1. Solving inequality 2k992k \leq 99, where kk is integer, we get the number of positive integers less than 100 and divisible by 2.

The [y][y] means the integer part of yy (the largest integer less than or equal to yy).

Let us find the number of positive integers x1x_1, where x1x_1 is divisible by 2:


N(A)=[992]=[49.5]=49.N(A) = \left[ \frac{99}{2} \right] = [49.5] = 49.


Further we shall find the number of positive integers x2x_2, where x2x_2 is divisible by 3:


N(B)=[993]=33.N(B) = \left[ \frac{99}{3} \right] = 33.


In the next step we shall find the number of positive integers x3x_3, where x3x_3 is divisible by 5:


N(C)=[995]=[19.8]=19.N(C) = \left[ \frac{99}{5} \right] = [19.8] = 19.


Then we shall determine the number of positive integers x4x_4, where x4x_4 is divisible by 6=326 = 3 \cdot 2:


N(AB)=[996]=[16.5]=16.N(A \cap B) = \left[ \frac{99}{6} \right] = [16.5] = 16.


Then we shall determine the number of positive integers x5x_5, where x5x_5 is divisible by 10=2510 = 2 \cdot 5:


N(AC)=[9910]=[9.9]=9.N(A \cap C) = \left[ \frac{99}{10} \right] = [9.9] = 9.


Then we shall determine the number of positive integers x6x_6, where x6x_6 is divisible by 15=3515 = 3 \cdot 5:


N(BC)=[9915]=[6.6]=6.N(B \cap C) = \left[ \frac{99}{15} \right] = [6.6] = 6.


Now we shall determine the number of positive integers x7x_7, where x7x_7 is divisible by


30=235:30 = 2 \cdot 3 \cdot 5:N(ABC)=[9930]=[3.3]=3.N(A \cap B \cap C) = \left[ \frac{99}{30} \right] = [3.3] = 3.

Method 2

We shall use the general formula for the ll-th term of the arithmetic sequence:


al=a1+(l1)d,a_l = a_1 + (l - 1)d,


hence


l=ala1d+1.l = \frac{a_l - a_1}{d} + 1.


The first positive integer divisible by 2 is a1=2a_1 = 2, the last positive integer less than 100 and divisible by 2 is al=98a_l = 98, hence the number of positive integers x1x_1, where x1x_1 is divisible by 2:


N(A)=9822+1=962+1=49.N(A) = \frac{98 - 2}{2} + 1 = \frac{96}{2} + 1 = 49.


The first positive integer divisible by 3 is b1=2b_1 = 2, the last positive integer less than 100 and divisible by 3 is bl=99b_l = 99, hence the number of positive integers x2x_2, where x2x_2 is divisible by 3:


N(B)=9933+1=963+1=33.N(B) = \frac{99 - 3}{3} + 1 = \frac{96}{3} + 1 = 33.


The first positive integer divisible by 5 is c1=5c_1 = 5, the last positive integer less than 100 and divisible by 5 is cl=95c_l = 95, hence the number of positive integers x3x_3, where x3x_3 is divisible by 5:


N(C)=9555+1=905+1=19.N(C) = \frac{95 - 5}{5} + 1 = \frac{90}{5} + 1 = 19.


The first positive integer divisible by 6=236 = 2 \cdot 3 is d1=6d_1 = 6, the last positive integer less than 100 and divisible by 6 is dl=96d_l = 96, hence the number of positive integers x4x_4, where x4x_4 is divisible by 6:


N(AB)=9666+1=906+1=16.N(A \cap B) = \frac{96 - 6}{6} + 1 = \frac{90}{6} + 1 = 16.


The first positive integer divisible by 10=2510 = 2 \cdot 5 is e1=10e_1 = 10, the last positive integer less than 100 and divisible by 10 is el=90e_l = 90, hence the number of positive integers x5x_5, where x5x_5 is divisible by 10:


N(AC)=901010+1=8010+1=9.N(A \cap C) = \frac{90 - 10}{10} + 1 = \frac{80}{10} + 1 = 9.


The first positive integer divisible by 15=3515 = 3 \cdot 5 is f1=15f_1 = 15, the last positive integer less than 100 and divisible by 15 is fl=90f_l = 90, hence the number of positive integers x6x_6, where x6x_6 is divisible by 15:


N(BC)=901515+1=7515+1=6.N(B \cap C) = \frac{90 - 15}{15} + 1 = \frac{75}{15} + 1 = 6.


The first positive integer divisible by 30=23530 = 2 \cdot 3 \cdot 5 is g1=30g_{1} = 30, the last positive integer less than 100 and divisible by 30 is gl=90g_{l} = 90, hence the number of positive integers x7x_{7}, where x7x_{7} is divisible by 30:


N(ABC)=903030+1=6030+1=3.N (A \cap B \cap C) = \frac {9 0 - 3 0}{3 0} + 1 = \frac {6 0}{3 0} + 1 = 3.


Finally using the inclusion-exclusion principle we determine the required value:


N(ABC)=N(A)+N(B)+N(C)N(AB)N(AC)N(BC)+N(ABC)=49+33+191696+3=73.\begin{array}{l} N (A \cup B \cup C) = N (A) + N (B) + N (C) - N (A \cap B) - N (A \cap C) - N (B \cap C) + N (A \cap B \cap C) \\ = 4 9 + 3 3 + 1 9 - 1 6 - 9 - 6 + 3 = 7 3. \end{array}


Answer: 73.

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