login
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).
2

%I #4 Mar 30 2012 18:51:45

%S 1002,2088,8532,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,

%T 6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,

%U 6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174,6174

%N 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 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, A151947, A151949, A151950, A069746, A151955, A151951, A151957.

%K nonn,base

%O 1,1

%A _Harvey P. Dale_, Aug 18 2009