Problem 780 · Hard

Reaching Points

Walk backwards from the target with a Euclid-style modulo until it hits the start or can no longer shrink.

Open the interactive visualisation