A Run-length Operator on Partitions of Integers, Applied to Inventory Chains