[go: up one dir, main page]

login
A333614
Lexicographically first sequence of nonnegative integers such that no two terms share all but one digit in common, nor does interchanging any two adjacent digits in any term change it into another term of the sequence.
1
0, 11, 22, 33, 44, 55, 66, 77, 88, 99, 102, 110, 121, 134, 145, 153, 167, 178, 186, 201, 212, 220, 235, 243, 254, 268, 276, 287, 304, 313, 326, 330, 341, 352, 365, 379, 398, 403, 414, 425, 432, 440, 451, 469, 497, 506, 515, 523, 531, 542, 550, 564, 589, 605, 616, 624, 637, 648, 659
OFFSET
1,2
COMMENTS
The rules of this sequence are designed to decrease the likelihood of confusing any two numbers in the sequence. This would be ideal, for example, in the case of generating account numbers.
EXAMPLE
a(1) = 0 because it is the smallest nonnegative integer.
a(2) = 11 because all integers between 1 and 10 only differ from 0 by one digit.
a(3) = 22 because all integers between 12 and 21 only differ from 11 by one digit.
a(11) = 102 because 101 becomes 011 when interchanging the first two adjacent digits.
PROG
(PARI) See Links section.
CROSSREFS
Cf. A008585 (binary analog).
Sequence in context: A308104 A108773 A282151 * A109052 A178358 A044896
KEYWORD
nonn,base
AUTHOR
Aidan Clarke, Mar 28 2020
STATUS
approved