Permutation of the natural numbers such that the Levenshtein distance between decimal representations of successive terms is 1, and a(n+1) is the largest such m < a(n) if it exists, or else the smallest such m > a(n); a(0) = 0.

A118757

Permutation of the natural numbers such that the Levenshtein distance between decimal representations of successive terms is 1, and a(n+1) is the largest such m < a(n) if it exists, or else the smallest such m > a(n); a(0) = 0.

Terms

    a(0) =0a(1) =1a(2) =2a(3) =3a(4) =4a(5) =5a(6) =6a(7) =7a(8) =8a(9) =9a(10) =19a(11) =18a(12) =17a(13) =16a(14) =15a(15) =14a(16) =13a(17) =12a(18) =11a(19) =10a(20) =20a(21) =21a(22) =22a(23) =23a(24) =24a(25) =25a(26) =26a(27) =27a(28) =28a(29) =29

External references