Problem 837
Amidakuji
Amidakuji (Japanese: 阿弥陀籤) is a method for producing a random permutation of a set of objects.
In the beginning, a number of parallel vertical lines are drawn, one for each object. Then a specified number of horizontal rungs are added, each lower than any previous rungs. Each rung is drawn as a line segment spanning a randomly select pair of adjacent vertical lines.
For example, the following diagram depicts an Amidakuji with three objects (

The coloured lines in the diagram illustrate how to form the permutation. For each object, starting from the top of its vertical line, trace downwards but follow any rung encountered along the way, and record which vertical we end up on. In this example, the resulting permutation happens to be the identity:
Let
You are also given that
Find
阿弥陀签
阿弥陀签是一种对物品进行随机重排的方法。
首先,对每一个待排列的物品绘制一条竖线。然后,在这些竖线间自上向下随机地绘制一些横档,每个横档连接任意两条相邻的竖线。
例如,下图绘制了对三个物品(

图中的彩色折线展示了如何决定最终的重排结果。对于每个物品,首先从其对应的竖线顶端出发向下移动,每当遇到横档时则必须沿横档移动到另一竖线,直至抵达竖线底端。在这个例子中,最终的重排结果恰好保持不变:
考虑所有不同的、对三个物品进行重排的阿弥陀签,记
已知
求
Be the first person to leave a comment!