Beans in Bowls
The sequence is defined by and for .
There are bowls indexed . Initially there are beans in bowl .
At each step, the smallest index is found such that bowl has strictly more beans than bowl . Then one bean is moved from bowl to bowl .
Let be the number of steps needed to sort the bowls into non-descending order.
For example, , and .
Find .
碗中豆
序列按如下方式定义:;对于,。
有个碗,其编号分别为。一开始,编号为的碗中放有颗豆子。
接下来的每一步中,先选择编号最小的、豆子数目比后一个碗严格更多的碗,再从碗中移动一颗豆子到碗。
记为将碗中豆子数目调整为非递降序列所需的步数。
例如,,,。
求。
Gitalking ...