Could Math Design the Perfect Electoral System?