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