if w is the set of all the integers between 59 and 99 , inclusive , that are either multiples of 3 or multiples of 2 or multiples of both , then w contains how many numbers ?
multiples of 2 from 59 to 99 = multiples of 2 from 1 to 99 - multiples of 2 from 1 to 58 = [ 99 / 2 ] - [ 58 / 2 ] = 49 - 29 = 20 multiples of 3 from 59 to 99 = multiples of 3 from 1 to 99 - multiples of 3 from 1 to 58 = [ 99 / 3 ] - [ 58 / 3 ] = 33 - 169 = 14 multiples of 2 and 3 bothi . e . 6 from 59 to 99 = multiples of 6 from 1 to 99 - multiples of 6 from 1 to 58 = [ 99 / 6 ] - [ 58 / 6 ] = 16 - 9 = 7 these 8 numbers have been counted twice in both the above calculation while calculating multiples of 2 and 3 i . e . total numbers in w = 20 + 14 - 7 = 27 answer option a
subtract(add(floor(divide(subtract(99, 59), 3)), divide(subtract(99, 59), 2)), floor(divide(subtract(99, 59), multiply(const_2, const_3))))