OFFSET
1,1
COMMENTS
Place numbers 2,3,4,5 clockwise around a grid point (see illustration in "Spiral" link). Divide grid into four spiral arms.
Extend each arm one step at a time, in rotation: first the 2 arm, then the 3 arm, then the 4 arm, then the 5 arm, then the 2 arm, etc.
Rule for extending: next term in arm is smallest number such that each cell in the grid is relatively prime to its four (N,S,E,W) neighbors. Inside an arm, the terms must be distinct.
Repetitions between arms are permitted.
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
Popular Computing (Calabasas, CA), Problem 146: Gcd, Vol. 4 (No. 45, Dec 1976), page PC45-4.
N. J. A. Sloane, Spiral showing initial terms of A257333-A257334
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 21 2015
EXTENSIONS
Corrected a(25), a(29), a(30), a(32) and more terms from Lars Blomberg, Apr 28 2015
STATUS
approved