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 A151955 #4 Mar 30 2012 18:51:45 %S A151955 102,198,792,693,594,495,495,495,495,495,495,495,495,495,495,495,495, %T A151955 495,495,495,495,495,495,495,495,495,495,495,495,495,495,495,495,495, %U A151955 495,495,495,495,495,495,495,495,495,495,495,495,495,495 %N A151955 a(1) = 102; thereafter a(n) = (a(n-1) with digits sorted into descending order) - (a(n-1) with digits sorted into ascending order) (see the Kaprekar map, A151949). %C A151955 102 is the smallest starting value which does not converge to 0. %C A151955 Converges to the fixed point 495. For the list of fixed points see A099009. %H A151955 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A151955 Cf. A099009, A151946, A151949, A151947, A151957. %K A151955 nonn,base %O A151955 1,1 %A A151955 _Harvey P. Dale_. Aug 18 2009