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 A164886 #6 Dec 25 2016 01:06:35 %S A164886 1,2,3,2,3,3,3,2,3,1,2,3,2,3,3,2,3,2,2,2,2,1,2,3,2,2,2,3,2,3,3,2,3,2, %T A164886 2,2,2,2,2,2,2,2,2,2,2,1,2,3,2,1,2,2,2,2,2,3,2,2,2,3,2,3,3,2,3,2,2,2, %U A164886 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,3,2,2,2,2,2,2,2,2,2 %N A164886 (Length of preperiodic part) + (length of cycle) of trajectory of n under iteration of the base-2 Kaprekar map in A164884. %C A164886 All base-2 cycles are fixed points, so one more than A164885. %H A164886 Joseph Myers, <a href="/A164886/b164886.txt">Table of n, a(n) for n = 0..1024</a> %H A164886 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A164886 Cf. A164884, A163205, A164885, A164887. %Y A164886 In other bases: A164996 (base 3), A165015 (base 4), A165035 (base 5), A165054 (base 6), A165074 (base 7), A165093 (base 8), A165113 (base 9), A151963 (base 10). %K A164886 base,nonn %O A164886 0,2 %A A164886 _Joseph Myers_, Aug 29 2009 %E A164886 Cross-references edited by _Joseph Myers_, Sep 04 2009