The Electoral College was devised at the Constitutional Convention in 1787. It was a compromise between those who wanted popular elections for president and those who wanted no public input.

It has 538 members, with the number allocated to each state based on how many representatives it has in the House plus one for each senator. The District of Columbia gets three, despite the fact that the home to Congress has no vote in Congress.

To be elected president, the winner must get at least half plus one — or 270 electoral votes. Most states give all their electoral votes to whichever candidate wins that state's popular vote. Maine and Nebraska award them by congressional district.

The AP tried to reach all of the electors and interviewed more than 330 of them, finding widespread aggravation among Democrats with the electoral process, but little expectation Trump would be derailed.

Some Democrats have argued that the Electoral College is undemocratic because it gives more weight to less populated states. That is how Hillary Clinton, who got more than 2.6 million more votes nationwide, lost the election to Trump. Some have also tried to dissuade Trump voters by arguing that he is unsuited for the job. Others cite the CIA's assessment that Russia engaged in computer hacking to sway the election in favor of the Republican.