On the solution of the caterer problem