There are boxes with non-negative number of pebbles inside it(so it can be empty). Let be the number of pebbles in the box . There are total pebbles in the boxes. From now on, Alice plays the following operation.
In each operation, Alice choose one of these boxes which is non-empty. Then she divide this pebbles into group such that difference of number of pebbles in any two group is at most 1, and put these group of pebbles into boxes one by one. This continues until only one box has all the pebbles, and the rest of them are empty. And when it's over, define as the total number of operations done by Alice.
Let be the smallest value of among all the possible operations on . Find the maximum possible value of among all the ordered pair , and find all the ordered pair that equality holds.