Problem 4
A robot is programmed to travel from the centre of a circle of radius 2026 by repeating the following three steps:
- The robot takes a step of length 1 in the direction it faces;
- If its current distance to the centre is not a whole number, then the robot turns so that the centre of the circle is directly to its left;
- If its current distance to the centre is a whole number, then the robot first takes a step of length 1 directly away from the centre and then turns so that the centre of the circle is directly to its left.
How many steps will it take for the robot to reach the edge of the circle? (The steps taken as part of directives 1. and 3. both count!)
This problem was first solved on Wed 4th February at 4:02:49pm