Discrepancy of Fractions with Divisibility Constraints