divisible by the input dimensions Args: target: Target dimensions dim: Input dimensions Returns: Constraints to check divisibility r