https://www.qissmi.com/2019/02/repartition-sequence4-cp1.html