I'm going with "applesauce".
You need more information, I think. There are far too many solutions.
If I have 100 apples at different weights, how do I share them out between a given number of people to a given ratio, so that each has as close as possible the same average weight per apple.
For example - 3 people require 20, 30 and 50 apples respectively. There are 100 apples of various known weights.
The average weight of each persons apples needs to be as close as possible.
I am afraid I don't know which branch of maths this falls under. Any help appreciated!
Good thought - but the apples cannot be cut up! There are many permutations I know, but this is the only information you get:
When the variation in apple weight is realistic, I can get the correct result. However, if I have a couple of really (ridiculously) heavy apples the result can be bad.
- The number of apples
- The weight of each apple
- The number of people
- The number of apples each person requires