City sizes

OK, I've got it. I'll quote it here in case somebody else wants it.

funxus said:
Each new citizen adds 10,000 more than the last citizen, and the first adds 10,000. So, the second adds 20,000, the third citizen adds 30,000 and the fourth adds 40,000. This means that a size 5 city has 10,000 +20,000 +30,000 +40,000 +50,000=150,000 citizens.

The formula is AritmethicSum(n)=n *(a1 + an)/2 =
n * (10,000 + 10,000*n) / 2
where n is the size of the city.

E.g. a size 40 city will have
40 * (10,000 + 40 *10,000) / 2 = 40 * 410,000 / 2 = 8,200,000 inhabitants

Thank you, funxus and S290!
 
x = city size
y = number of inhabitants

((x * ((x + 1)) / 2) = Y
((1 * ((1 + 1)) / 2) = 1 (multiply with 10.000)
((2 * ((2 + 1)) / 2) = 3
((3 * ((3 + 1)) / 2) = 6
((4 * ((4 + 1)) / 2) = 10
 
about city-size and world population: i think it is quiete strange that even if you do everything to grow your population you can never have more than about 300 000 000 inhabitants on the great worldmap. The worlds population is about 6.5 billions.
 
EquinoxOmega said:
about city-size and world population: i think it is quiete strange that even if you do everything to grow your population you can never have more than about 300 000 000 inhabitants on the great worldmap. The worlds population is about 6.5 billions.

Just to clarify a bit, you can have more citizens than 320,000,000, its just that the hard-coded program cannot display more than that. However, the additional citizens are included in your final score.
 
Back
Top Bottom