login
A340254
Lexicographically earliest sequence of distinct nonnegative terms such that for any n >= 0, a(n+1) is obtained by altering the leftmost decimal digit (which is not a leading zero) in a(n) or if this is not possible by altering the rightmost leading zero in a(n).
2
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 19, 29, 39, 49, 59, 69, 79, 89, 99, 90, 10, 20, 30, 40, 50, 60, 70, 80, 81, 11, 21, 31, 41, 51, 61, 71, 91, 92, 12, 22, 32, 42, 52, 62, 72, 82, 83, 13, 23, 33, 43, 53, 63, 73, 93, 94, 14, 24, 34, 44, 54, 64, 74, 84, 85, 15, 25, 35
OFFSET
0,3
COMMENTS
This sequence appears to be a permutation of the nonnegative integers.
LINKS
PROG
(PARI) See Links section.
CROSSREFS
See A340250 for similar sequences.
Sequence in context: A248013 A088473 A317110 * A190876 A051885 A227378
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 02 2021
STATUS
approved