NextComposition

NextComposition[l]
constructs the integer composition that follows l in a canonical order.

更多信息更多信息