cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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.

Original entry on oeis.org

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

Views

Author

Aidan Clarke, Mar 28 2020

Keywords

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.

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.
		

Crossrefs

Cf. A008585 (binary analog).

Programs

  • PARI
    See Links section.