OFFSET
1,2
COMMENTS
The sequence is started with a(1) = 1 and always extended with the smallest integer not yet present and not leading to a contradiction. This sequence is a variant of A284516 and the variant is explained in the "Example" section.
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
The first 16 terms of this variant are 1, 2, 13, 24, 5, 3, 6, 7, 4, 8, 52, 9, 62, 73, 18, 132.
The first 16 terms of the orig seq are 1, 2, 13, 24, 5, 3, 6, 7, 4, 8, 52, 9, 62, 73, 18, 131.
The difference is in the last digit of the last term (131 becomes here 132): in the original sequence the first digit "1" of the term "131" is twice at a gap of 1 digit from another "1" (there is indeed a gap of 1 digit between the first "1" of "131" and the "1" of "18" AND there is also a gap of 1 digit between the first and the second "1" of "131"). This is forbidden in this variant, whatever digit "d" you pick: if your digit "d" is at a gap of d from another "d", it cannot be at the same gap of another "d".
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lars Blomberg and Eric Angelini, Mar 31 2017
STATUS
approved