Answer on Question #62173 – Math – Discrete Mathematics
Question
Determine the number of positive integers x, where x<100 and x is divisible by 2, 3 or 5.
Solution
Method 1
The first positive integer divisible by 2 is 2=2⋅1. Solving inequality 2k≤99, where k is integer, we get the number of positive integers less than 100 and divisible by 2.
The [y] means the integer part of y (the largest integer less than or equal to y).
Let us find the number of positive integers x1, where x1 is divisible by 2:
N(A)=[299]=[49.5]=49.
Further we shall find the number of positive integers x2, where x2 is divisible by 3:
N(B)=[399]=33.
In the next step we shall find the number of positive integers x3, where x3 is divisible by 5:
N(C)=[599]=[19.8]=19.
Then we shall determine the number of positive integers x4, where x4 is divisible by 6=3⋅2:
N(A∩B)=[699]=[16.5]=16.
Then we shall determine the number of positive integers x5, where x5 is divisible by 10=2⋅5:
N(A∩C)=[1099]=[9.9]=9.
Then we shall determine the number of positive integers x6, where x6 is divisible by 15=3⋅5:
N(B∩C)=[1599]=[6.6]=6.
Now we shall determine the number of positive integers x7, where x7 is divisible by
30=2⋅3⋅5:N(A∩B∩C)=[3099]=[3.3]=3.Method 2
We shall use the general formula for the l-th term of the arithmetic sequence:
al=a1+(l−1)d,
hence
l=dal−a1+1.
The first positive integer divisible by 2 is a1=2, the last positive integer less than 100 and divisible by 2 is al=98, hence the number of positive integers x1, where x1 is divisible by 2:
N(A)=298−2+1=296+1=49.
The first positive integer divisible by 3 is b1=2, the last positive integer less than 100 and divisible by 3 is bl=99, hence the number of positive integers x2, where x2 is divisible by 3:
N(B)=399−3+1=396+1=33.
The first positive integer divisible by 5 is c1=5, the last positive integer less than 100 and divisible by 5 is cl=95, hence the number of positive integers x3, where x3 is divisible by 5:
N(C)=595−5+1=590+1=19.
The first positive integer divisible by 6=2⋅3 is d1=6, the last positive integer less than 100 and divisible by 6 is dl=96, hence the number of positive integers x4, where x4 is divisible by 6:
N(A∩B)=696−6+1=690+1=16.
The first positive integer divisible by 10=2⋅5 is e1=10, the last positive integer less than 100 and divisible by 10 is el=90, hence the number of positive integers x5, where x5 is divisible by 10:
N(A∩C)=1090−10+1=1080+1=9.
The first positive integer divisible by 15=3⋅5 is f1=15, the last positive integer less than 100 and divisible by 15 is fl=90, hence the number of positive integers x6, where x6 is divisible by 15:
N(B∩C)=1590−15+1=1575+1=6.
The first positive integer divisible by 30=2⋅3⋅5 is g1=30, the last positive integer less than 100 and divisible by 30 is gl=90, hence the number of positive integers x7, where x7 is divisible by 30:
N(A∩B∩C)=3090−30+1=3060+1=3.
Finally using the inclusion-exclusion principle we determine the required value:
N(A∪B∪C)=N(A)+N(B)+N(C)−N(A∩B)−N(A∩C)−N(B∩C)+N(A∩B∩C)=49+33+19−16−9−6+3=73.
Answer: 73.
www.AssignmentExpert.com