greenplant wrote:Q. How many integers are between 100 and 150, inclusive, cannot be evenly divided by 3 nor 5?
a. 35
b. 27
c. 25
d. 26
e. 28
Could anyone tell me if there is a simple way to deduce the answer instead of going through each number between 100 and 150
In the case of 3, going thru each number might be very prone to error though it might be quick for some people. Instead, I would use the formula for the nth term of an arithmetic sequence to find how many numbers are divisible by 3 btw 100, and 150, count how many numbers are divisible by 5, sum these and subtract from the sum the number. of integers divisble by 15, since these would have been double counted. I would then take this sum from the number of integers between 100 and 150 inclusive. So the Algorithm might run like this
N-(T + F - B) where T, F and B mean "The number of Integers divisible by Three, Five and Both 3 and 5 or 15, respectively. N is the number of integers between 100 and 150 inclusive.
150 = 102 +(T-1)3 (102 is the first number divible by 3 after 100.)
51 =3T
T=17
Since 5 is generally easier to handle I would count, not forgeting to start with 100. F=11
For B: 105 120 135 150 so, B=4
So 17+11-4=24
Now N= 150 -100 +1=51
51-24=27
I choose B.