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.
%I A354113 #12 May 17 2022 17:49:47 %S A354113 10,10,12,13,14,15,16,17,18,19,100,101,102,103,104,105,106,107,108, %T A354113 109,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135, %U A354113 136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153 %N A354113 The smallest number that contains all the digits of n in order but does not equal n. %C A354113 If n begins with 1, then a(n) is obtained by inserting a 0 after it; otherwise a(n) is obtained by placing a 1 before n. %H A354113 Jianing Song, <a href="/A354113/b354113.txt">Table of n, a(n) for n = 0..10000</a> %F A354113 If 10^k <= n < 2*10^k, a(n) = n + 9*10^k; if 2*10^k <= n < 10^(k+1), a(n) = n + 10^(k+1). %e A354113 The smallest number not equal to 19 containing the digits 1 and 9 in that order is 109, so a(19) = 109. %e A354113 The smallest number not equal to 22 containing two 2's is 122, so a(22) = 122. %o A354113 (PARI) a(n) = if(n==0, 10, my(k=logint(n,10)); if(n<2*10^k, n+9*10^k, n+10^(k+1))) %o A354113 (Python) %o A354113 def a(n): %o A354113 if n == 0: return 10 %o A354113 s = str(n) %o A354113 return int(s[0]+"0"+s[1:]) if s[0] == "1" else int("1"+s) %o A354113 print([a(n) for n in range(54)]) # _Michael S. Branicky_, May 17 2022 %Y A354113 Cf. A354049, A354114. %K A354113 nonn,base,easy %O A354113 0,1 %A A354113 _Jianing Song_, May 17 2022