OFFSET
0,3
COMMENTS
A118763 is the lexicographically smallest permutation with LevenshteinDistance[Base10](a(n),a(n+1)) = 1. - M. F. Hasler, Sep 12 2018
LINKS
R. Zumkeller, Table of n, a(n) for n = 0..30000
Michael Gilleland, Levenshtein Distance, 2006. [Broken link fixed by M. F. Hasler, Sep 12 2018, cf A118763]
R. Zumkeller, Values of A118757 for n<=1200
FORMULA
a(n+1) = if U(n) is empty then Min(V(n)) else Max(U(n)), where the sets U and V are defined as: U(m) = {x < a(m) : LD10(a(m),x) = 1 and a(k) <> x for 0 <= k < m}, V(m) = {x > a(m) | LD10(a(m),x) = 1 and a(k) <> x for 0 <= k < m} with LD10 = Levenshtein distance in decimal representations of natural numbers.
a(n) = A118758(n) (self-inverse) for n < 100.
CROSSREFS
KEYWORD
AUTHOR
Reinhard Zumkeller, May 01 2006
EXTENSIONS
Correct definition and other edits by M. F. Hasler, Sep 12 2018
STATUS
approved