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 A165017 #4 Mar 30 2012 17:28:43 %S A165017 0,30,126,138,201,570,765,2550,3369,3873,14565,41958,42966,54441, %T A165017 57333,62625,64641,171990,234405,254865,873129,954261,1004193,1036929, %U A165017 1044993,2788950,3489705,3755685,3833685,4083345,4165185,11140950,13978281 %N A165017 Consider the base-4 Kaprekar map n->K(n) defined in A165012. Sequence gives numbers belonging to cycles, including fixed points. %C A165017 Initial terms in base 4: 0, 132, 1332, 2022, 3021, 20322, 23331, 213312, 310221, 330201. %H A165017 Joseph Myers, <a href="/A165017/b165017.txt">Table of n, a(n) for n=1..7217</a> %H A165017 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A165017 Union of A165016 and A165019. Cf. A165012, A165018, A165021, A165023, A165030, A165026. %Y A165017 In other bases: A163205 (base 2), A164998 (base 3), A165037 (base 5), A165056 (base 6), A165076 (base 7), A165095 (base 8), A165115 (base 9), A164716 (base 10). %K A165017 base,nonn %O A165017 1,2 %A A165017 _Joseph Myers_, Sep 04 2009