Calculate divisor and multiple