Find a divisor between divisor_from and divisor_to such that
sum(round_func(votes/divisor)) equals target_seats
find_divisor(votes, divisor_from, divisor_to, target_seats, round_func)divisor
votes (matrix with only one column or vector, allows to use row/colnames
within round_func)
lower bound for divisor search range (is decreased if necessary)
upper bound for divisor search range (is increased if necessary)
number of seats to distribute (single number)
rounding function