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 A164998 #4 Mar 30 2012 17:28:43 %S A164998 0,32,52,184,320,484,580,1696,1768,2008,5332,15304,16024,16240,18208, %T A164998 18424,19144,26240,39364,48100,48964,55360,137776,144328,146488, %U A164998 147136,164008,166168,166816,172720,173368,175528,433012,441652,520372,1240024 %N A164998 Consider the base-3 Kaprekar map n->K(n) defined in A164993. Sequence gives numbers belonging to cycles, including fixed points. %C A164998 Initial terms in base 3: 0, 1012, 1221, 20211, 102212, 122221, 210111, 2022211, 2102111, 2202101. %H A164998 Joseph Myers, <a href="/A164998/b164998.txt">Table of n, a(n) for n=1..8662</a> %H A164998 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A164998 Union of A164997 and A165000. Cf. A164993, A164999, A165002, A165004, A165010, A165007. %Y A164998 In other bases: A163205 (base 2), A165017 (base 4), A165037 (base 5), A165056 (base 6), A165076 (base 7), A165095 (base 8), A165115 (base 9), A164716 (base 10). %K A164998 base,nonn %O A164998 1,2 %A A164998 _Joseph Myers_, Sep 04 2009