X sequence.
The rules are simple:
Here, # means any sequence of positive integers. ## is another sequence. They can be empty. The syntax is X(#){n}.
- X(){n}=n
- X(#,1){n}=X(#){n+1}
- X(#,n,##,n+1){m}=X(#,n,##,n,##,n,##,n,##...) with m "n,##"'s if ## has no elements ≤n
- Otherwise,
- Draw the hanging-rope diagram
- Evaluate bottom
- Ascend back up