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.
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
Examples
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.
Links
- Rémy Sigrist, PARI program for A333614
Crossrefs
Cf. A008585 (binary analog).
Programs
-
PARI
See Links section.
Comments