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 A342829 #17 Mar 24 2021 06:04:06 %S A342829 1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,19,2,3,4,5,6,7,8,9,19,29,3,4,5,6, %T A342829 7,8,9,19,29,39,4,5,6,7,8,9,19,29,39,49,5,6,7,8,9,19,29,39,49,59,6,7, %U A342829 8,9,19,29,39,49,59,69,7,8,9,19,29,39,49,59,69,79,8 %N A342829 a(n) is the smallest number whose sum of digits is equal to the sum of digits of n. %H A342829 Michel Marcus, <a href="/A342829/b342829.txt">Table of n, a(n) for n = 1..10000</a> %F A342829 a(n) = A051885(A007953(n)). %e A342829 For n=10, A007953(10) = 1, and 1 is the smallest integer x satisfying A007953(x)=1, so a(10)=1. %o A342829 (PARI) a(n) = my(k=1, s=sumdigits(n)); while(sumdigits(k) != s, k++); k; %Y A342829 Cf. A007953 (sum of digits), A051885. %K A342829 nonn,base,look %O A342829 1,2 %A A342829 _Michel Marcus_, Mar 23 2021