Task

    Perplexed by a simple task, we puzzle over the entire room.

    The essence of the problem: find a number that, if you take the last digit and move to the beginning, will be half the resulting number. That is, abcde * 2 = bcdea. Bit depth is not limited.

    Maybe someone knows how to solve without resorting to brute force?

    Also popular now: