How many numbers less than 1000 are NOT divisible by either: a) 2 or 5 b) 2, 5 or 7
Check the final answer first, then review the worked steps.
Check the final answer first, then review the worked steps.
a) $999 - (\lfloor\frac{999}{2}\rfloor + \lfloor\frac{999}{5}\rfloor - \lfloor\frac{999}{10}\rfloor) = 999 - (499 + 199 - 99) = 400$
b) $999 - (499 + 199 + 142 - 99 - 71 - 28 + 14) = 999 - 656 = 343$