A344467 Numbers that return to the origin when performing a non-backtracking walk on a 2D square lattice where at each step the walk moves as close as possible to the origin and the step lengths are the ordered prime factors of the integers, starting with a step of length 1.
4, 28, 39, 190, 794, 4656, 17064, 130800, 1753625, 5154759
Offset: 1
Examples
4 is the first term. After the first step of length 1 the next steps are of length 2,3,2,2: the ordered prime factors of 2,3,4. Assume the first step is upward to (0,1) and, if a choice of directions is available, it steps in a clockwise direction unless forbidden by the previous step - this direction choice is irrelevant to the sequence numbers. Given this the next steps are to coordinates (2,1), (2,-2), (0,-2), (0,0), and the second prime factor 2 of 4 returns to the origin. 28 is a term. After 4 returns to the origin the next steps up to the factors of 28 are of length 5,2,3,7,2,2,2,3,3,2,5,...,3,2,2,7. The coordinates stepped to are then (0,5),(2,5),(2,2),(2,-5),(0,-5),...,(0,-7),(0,-4),(0,-2),(0,0),(0,7),..., and the second factor 2 of 28 returns to the origin.
Links
- Lucas A. Brown, Python program.
- Scott R. Shannon, Image of the path up to the factors of 100. Each step is shown as a dot, and the path between steps as a line. The colors are graduated across the spectrum from red to violet to show the relative step ordering. The origin is marked with a white dot. In this and the below images if the walk stops on an axis or the four diagonals it then steps in a clockwise direction unless forbidden by the previous step. If the walk returns to the origin then the next step is upward.
- Scott R. Shannon, Image of the central 200 X 200 region of the path up to the factors of 5154759. Zooming in shows a line of violet dots crossing the origin three units apart which are the factors of 3 of 5154759. Note the vast majority of dots near the origin are red or orange, indicating it is rare for numbers over one million to approach the central region.
- Scott R. Shannon, Image of the full path up to the factors of 5154759.
Programs
-
Python
# See LINKS.
Comments