There is a square grid of people and two political parties: Red and Yellow. The grid is split into districts, with the following rules:
- All districts must be rectangles
- Each voter must be in exactly 1 district
- No district can contain twice or more votes as another district. For example, if there is a district with 5 people, there can be no district with fewer than 3 or more than 9 people.
A party wins a district when they have more than half the votes in that district. The winner of an election is the party that wins more districts. What is the minimum number of Red voters needed to win the election for square grids of size from 3x3 to 12x12?
Source: https://mathpickle.com/project/democracy/ (not all the bounds are the best possible).