How do they figure out how many representatatives each state has in the US house of representatives?

The US House of Representatives has, by Constitutional mandate, has 435 seats. The seats are divided among states based on the each state's population.