Quota = Number of people in Australia / (Number of senators in the Senate * 2)
Members of the House of Parliament for each state = Number of people in the state / Quota + (Optional)
Optional is worked out as follows:
- If mod(Number of people in the state / Quota) > (Quota / 2) then Optional = 1
- Else Optional = 0