login
Construct a grid containing the numbers from 1 to 110, laid out as shown below. If you start at 1 and go right 1, then down 2, then left 3, then up 4, then right 5, then down 6 and so on, being sure to wrap around if you go off an edge (e.g., going right from 10 will go to 1) you will land on these numbers in order.
0

%I #5 Mar 17 2014 01:08:31

%S 2,22,29,99,94,44,47,77,76,66,65,55,58,88,83,33,40,110,101,11,12,12,

%T 19,109,104,34,37,87,86,56,55,65,68,78,73,43,50,100,91,21,22,2,9,9,4,

%U 24,27,97,96,46,45,75,78,68,63,53,60,90,81,31,32,102,109,19,14,14,17,107,106

%N Construct a grid containing the numbers from 1 to 110, laid out as shown below. If you start at 1 and go right 1, then down 2, then left 3, then up 4, then right 5, then down 6 and so on, being sure to wrap around if you go off an edge (e.g., going right from 10 will go to 1) you will land on these numbers in order.

%C Interestingly, this pattern visits every number from 1 to 110 twice before repeating the pattern.

%e The last two numbers before it repeats are 1,1 because 1 is the 219 term and you go right by 220 increments wrapping around when you reach the end and land on 1 again, then go right 221 spaces and land on 2, where the pattern repeats.

%e 1...2..3.....10

%e 11.12.13.....20

%e ...............

%e ............110

%K easy,fini,nonn

%O 1,1

%A _Ben Paul Thurston_, Nov 21 2005