You aren't dividing up seats by party. You make big districts with at least 5 representatives. Anyone with 1/n of first place votes is elected. The candidate with the fewest first place votes is removed, and you repeat until all the seats are filled.