Sunday Times Teaser 3050 – Power Struggle
by Victor Bryant
Published Sunday March 07 2021 (link)
Given any number, one can calculate how close it is to a perfect square or how close it is to a power of 2. For example, the number 7 is twice as far from its nearest perfect square as it is from its nearest power of 2. On the other hand, the number 40 is twice as far from its nearest power of 2 as it is from its nearest square.
I have quite easily found a larger number (odd and less than a million!) for which one of these distances is twice the other.
What is my number?