Actually the number of seats is distributed in a process called "Apportionment" - So what you need to know just just this, the United States congressional apportionment.
This apportionment is related to the population of the states, but the relationship is not direct and in some states the representative represents a different number of people than in others.