Determine the least common denominator