simple divisors calculation