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 A151956 #4 Mar 30 2012 18:51:45 %S A151956 1002,2088,8532,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174, %T A151956 6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174, %U A151956 6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174 %N A151956 a(1) = 1002; 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 A151956 For the list of fixed points see A099009. %H A151956 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A151956 Cf. A099009, A151947, A151949, A151950, A069746, A151955, A151951, A151957. %K A151956 nonn,base %O A151956 1,1 %A A151956 _Harvey P. Dale_, Aug 18 2009