Ok, I guess I understand, I just give some examples of how I think the function should work:
prizeDistribution(15, 3, 1, true) = [6, 5, 4]
prizeDistribution(15, 3, 7, true) = [12, 5, -2] <-- or maybe negative prices are not allowed? Then this would be [11, 4, 0]
prizeDistribution(14, 3, 1, false) = [5.6666, 4.6666, 3.6666]
prizeDistrubution(14, 3, 1, true) = [5, 4, 3] <-- or should this be something like [5, 5, 4] or [6, 5, 3] to get the right sum?
Please clarify!