0,14
Seiichi Manyama, Table of n, a(n) for n = 0..10000 (terms 0..1000 from Joseph Myers)
Index entries for the Kaprekar map
(PARI) a(n) = my(d=digits(n)); (fromdigits(vecsort(d, , 4)) - fromdigits(vecsort(d)))/9; \\ Michel Marcus, Sep 25 2018
In other bases: A164884 (base 2), A164994 (base 3), A165013 (base 4), A165033 (base 5), A165052 (base 6), A165072 (base 7), A165091 (base 8), A165111 (base 9). [From Joseph Myers, Sep 05 2009]
Sequence in context: A113608 A040115 A080465 * A104418 A173528 A245345
Adjacent sequences: A151947 A151948 A151949 * A151951 A151952 A151953
nonn,base,look
N. J. A. Sloane, Aug 18 2009
Extended by Joseph Myers, Aug 28 2009
approved