two assembly line inspectors , smithy and glen , inspect widgets as they come off the assembly line . if smithy inspects every fifth widget , starting with the fifth , and glen inspects every third , starting with the third , how many of the 98 widgets produced in the first hour of operation are not inspected by either inspector ?
widgets inspected by smithy : ( ( 95 - 5 ) / 5 ) + 1 = 18 + 1 = 19 widgets inspected by glen : ( ( 96 - 3 ) / 3 ) + 1 = 31 + 1 = 32 widgets inspected by both : ( ( 90 - 15 ) + 1 = 6 total : 19 + 32 - 6 = 45 hence , widgets not inspected : 98 - 45 = 53 option b
subtract(98, subtract(add(divide(98, divide(const_10, const_2)), divide(98, const_3)), divide(98, multiply(divide(const_10, const_2), const_3))))