Just keep in mind. This model has 3 phases. Bodies at phase1 is different from bodies at phase3. The law of momentum conservation works, but it gives different result for bodies with different mass.

This is the comment from other forum.

"If the platform is completely free to move (say floating in outer space) momentum conservation requires that it will end up with a positive forward velocity V=(nm/(M+nm) )v. Kinetic energy is not conserved because as each link slaps down on the surface some energy is converted to heat.

For a full ring rolling at constant velocity there's no horizontal force between the bottom of the ring and the surface but that requires the ring to be balanced (rotationally symmetric). As links become missing from the circle that's no longer true so the succeeding links that hit the surface do have a forward pull on them accelerating the platform forward."