The President is not elected directly by the voters but by an Electoral College representing each state on the basis of a combination of the number of members in the Senate (two for each state regardless of size) and the number of members in the House of Representatives (roughly proportional to population).
The states with the largest number of votes are California (55), Texas (38) and New York (29). The states with the smallest number of votes - there are six of them - have only three votes. The District of Columbia, which has no voting representation in Congress, has three Electoral College votes. In effect, therefore, the Presidential election is not one election but 51