login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(1) = 113; 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

%I #4 Mar 30 2012 16:51:07

%S 113,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) = 113; 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 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, A151955.

%K nonn,base

%O 1,1

%A _N. J. A. Sloane_, Aug 18 2009