Problem

Source: BMO Shortlist 2022, N4

Tags: number theory



A hare and a tortoise run in the same direction, at constant but different speeds, around the base of a tall square tower. They start together at the same vertex, and the run ends when both return to the initial vertex simultaneously for the first time. Suppose the hare runs with speed 1, and the tortoise with speed less than 1. For what rational numbers $q{}$ is it true that, if the tortoise runs with speed $q{}$, the fraction of the entire run for which the tortoise can see the hare is also $q{}$?