[Community Puzzle] The River I

Your comment prompted me to check for performance issues and unnecesary calculations. A slight optimization on sum of the digits did the trick. Thanks a lot for the help!

1 Like

the hint is only do the river calculation on the smaller one, and break when the two finally are equal
Thanks for all the hints above

1 Like

It’s a very interesting problem. I solved it successfully in C.
I wonder if there are some pair of number that don’t converge.
I tried 1 and 3 and loops forever. I don’t know if the meeting point is too big or doesn’t exist.

The convergence is a lot earlier than you think!