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 A052484 #12 Jul 02 2025 19:59:46 %S A052484 0,9,18,27,36,45,54,63,72,81,9,90,9,18,27,36,45,54,63,72,18,9,180,9, %T A052484 18,27,36,45,54,63,27,18,9,270,9,18,27,36,45,54,36,27,18,9,360,9,18, %U A052484 27,36,45,45,36,27,18,9,450,9,18,27,36,54,45,36,27,18,9,540,9,18,27,63,36,45,36,27,18 %N A052484 Let P = all numbers that can be obtained by permuting the digits of n and possibly adding or omitting zeros; a(n) = |n-q| where q in P is the closest number to n different from n (a(n)=0 if no such q exists). %C A052484 Quasi-periodic. %e A052484 a(1)=9 since P={1,10,100,...} and 10-1 = 9. %Y A052484 Cf. A052500, A052999. %K A052484 nonn,base,easy %O A052484 0,2 %A A052484 _N. J. A. Sloane_, Mar 18 2000 %E A052484 More terms from _Asher Auel_, May 12 2000