Suppose that n people A1, A2, …, An, (n≥3) are seated in a circle and that Ai has ai objects such that
a1+a2+⋯+an=nN
where N is a positive integer. In order that each person has the same number of objects, each person Ai is to give or to receive a certain number of objects to or from its two neighbours Ai−1 and Ai+1. (Here An+1 means A1 and An means A0.) How should this redistribution be performed so that the total number of objects transferred is minimum? algorithmrotationgeometrygeometric transformationlogarithmscombinatorics