Hamilton's plan and the Alabama paradox