This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A165004 #4 Mar 30 2012 17:28:43 %S A165004 32,320,1696,15304,18208,26240,137776,164008,172720,433012,1240024, %T A165004 1476208,1554904,1581040,4487680,11160256,13286008,13994560,14230648, %U A165004 14309056,35075092,42160852,100442344,106819600,119574208,125951464 %N A165004 Consider the base-3 Kaprekar map n->K(n) defined in A164993. Sequence gives least elements of each cycle of length > 1. %C A165004 Initial terms in base 3: 1012, 102212, 2022211, 202222211, 220222101, 1022222212, 20222222211, 22022222101, 22202221001, 210222222111. %H A165004 Joseph Myers, <a href="/A165004/b165004.txt">Table of n, a(n) for n=1..20072</a> %H A165004 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A165004 Cf. A164993, A165005, A164997, A164998, A165002, A165000, A165010. %Y A165004 In other bases: Empty (base 2), A165023 (base 4), A165043 (base 5), A165062 (base 6), A165082 (base 7), A165101 (base 8), A165121 (base 9), A164720 (base 10). %K A165004 base,nonn %O A165004 1,1 %A A165004 _Joseph Myers_, Sep 04 2009