Method of cattle distribution: Borrow 1 head from outside, a total of 20 heads, the eldest one gets 10, the second one gets 5 heads, the third one gets 4 heads,/kloc-0+5+4 = 1 9 heads, and finally return the remaining1heads to others.
The mathematical principle is: equal proportion sequence. For the boss, the limit of the surplus is:19-19 * (1/2+1/4+1/5) =19/20 (primary surplus). So: the sum of series:19/2+1/2 *19/20+-=19/2/(1-kloc-0//20) = 6544.