ACME Inc. rebuilt its factory to raise productivity. The factory has p production lines that are independent and identical, and each line gets some workers.
Machines do all of the work, so the production rate is the same no matter how many workers stand at a line. Safety rules allow a line to run only while every worker assigned to it is on duty. The productivity of a line is therefore the length of the time span in which all of its workers are at work together. To keep the workers proud of their line, the productivity of every line must be greater than 0.
Labor law forbids ACME from firing anyone, so all n workers have to be assigned to a line, and no line may be left empty. The productivity of the factory is the sum of the productivities of the p lines. What is the largest productivity the new factory can reach?