greatest population should be 3

avoid log(1), that produces 0