Choosing n numbers with fixed sum

You are looking to partition the distance from 0 to 1.

Choose n – 1 numbers from 0 to 1, sort them and determine the distances between each of them.

This will partition the space 0 to 1, which should yield the occasional large result which you aren’t getting.

Even so, for large values of n, you can generally expect your max value to decrease as well, just not as quickly as your method.

Leave a Comment