login
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).
4
102, 198, 792, 693, 594, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495, 495
OFFSET
1,1
COMMENTS
102 is the smallest starting value which does not converge to 0.
Converges to the fixed point 495. For the list of fixed points see A099009.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Harvey P. Dale. Aug 18 2009
STATUS
approved