For democratic elections to be fair, voting districts must have similar sizes. When populations shift, districts need to be redistributed -- a complex and, in many countries, controversial task when political parties attempt to influence redistricting. Mathematicians have now developed a method that allows the efficient calculation of optimally sized voting districts.