Check if Point Is Reachable
The gcd of the coordinates never falls below a power of two, so the point is reachable exactly when that gcd is a power of two.
The gcd of the coordinates never falls below a power of two, so the point is reachable exactly when that gcd is a power of two.