election mathematics