Using Mathematics to Elect the U.S. President