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 A165014 #6 Dec 25 2016 01:05:36 %S A165014 0,1,1,1,2,1,2,3,3,2,1,2,3,3,2,1,2,2,1,2,2,1,2,1,1,2,2,1,2,1,0,1,1,1, %T A165014 1,2,1,2,2,1,1,2,1,2,2,1,2,2,2,2,2,2,2,1,1,1,2,1,2,2,2,1,2,1,2,2,1,1, %U A165014 2,2,1,2,1,1,1,1,1,2,1,2,2,2,1,2,2,1,2,1,1,2,2,1,2,1,1,3,1,1,1,1,1,2,2,1,1 %N A165014 Length of preperiodic part of trajectory of n under iteration of the base-4 Kaprekar map in A165012. %H A165014 Joseph Myers, <a href="/A165014/b165014.txt">Table of n, a(n) for n = 0..1024</a> %H A165014 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A165014 Cf. A165012, A165015. %Y A165014 In other bases: A164885 (base 2), A164995 (base 3), A165034 (base 5), A165053 (base 6), A165073 (base 7), A165092 (base 8), A165112 (base 9), A151962 (base 10). %K A165014 base,nonn %O A165014 0,5 %A A165014 _Joseph Myers_, Sep 04 2009