A285471 A labyrinth-sequence where the entry is the first digit of the sequence and the exit at infinity. (How to move in the labyrinth is explained in the Comments and Example sections).
1, 3, 0, 5, 7, 9, 2, 20, 13, 15, 4, 18, 31, 38, 33, 35, 21, 8, 34, 37, 23, 17, 19, 6, 11, 78, 28, 50, 51, 25, 61, 39, 29, 81, 10, 16, 53, 27, 80, 14, 55, 57, 22, 59, 83, 30, 58, 85, 65, 12, 43, 70, 40, 71, 32, 52, 41, 73, 45, 47, 72, 42, 75, 49, 24, 54, 77
Offset: 1
Examples
The sequence starts with 1,3,0,5,7,9,2,20,13,15,4,18,... You land on the first "1" and then jump over 1 digit to the right: you land on 0; this 0 forces you to "slide" on the prior digit 3 (as 0 is even); this 3 sends you to the right, jumping over 3 digits: you land on 9; this 9 sends you to the right again, jumping over 9 digits: you land on 8; this 8 sends you to the left (as 8 is even), jumping over 8 digits: you land on the isolated integer 2; this 2 sends you again to the left, jumping over 2 digits: you land on 5; 5 sends you to the right (as 5 is odd), jumping over 5 digits: you land on 1; etc. All digits of the sequence will be visited once in this way.
Links
- Lars Blomberg, Table of n, a(n) for n = 1..800 (Due to possible future backtracking, the last few terms may not be correct.)
- Lars Blomberg, Illustration of 800 terms
- Lars Blomberg, Illustration of the labyrinth path for 800 terms
- Lars Blomberg, Illustration of the difference between the labyrinth path and the line y=x for 800 terms
- Lars Blomberg, C# program for computing the terms
Extensions
Corrected a(26) and beyond and clarified the Comment by Lars Blomberg, Apr 24 2017
Comments