We consider the problem of apportioning a fixed number of seats in a national parliament to the candidates of different parties that are elected in constituencies so as to meet party and constituency constraints. We propose a maxmin formulation of the problem. The purpose is to obtain a fair apportionment of the parliament seats, in the sense that the minimum number of voters behind any possible parliament majority is maximum. We illustrate the concepts with some examples, including an example from the last Icelandic election