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 A164885 #8 Jun 02 2025 01:53:28 %S A164885 0,1,2,1,2,2,2,1,2,0,1,2,1,2,2,1,2,1,1,1,1,0,1,2,1,1,1,2,1,2,2,1,2,1, %T A164885 1,1,1,1,1,1,1,1,1,1,1,0,1,2,1,0,1,1,1,1,1,2,1,1,1,2,1,2,2,1,2,1,1,1, %U A164885 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,2,1,1,1,1,1,1,1,1,1 %N A164885 Length of preperiodic part of trajectory of n under iteration of the base-2 Kaprekar map in A164884. %C A164885 All base-2 cycles are fixed points, so one less than A164886. %H A164885 Joseph Myers, <a href="/A164885/b164885.txt">Table of n, a(n) for n = 0..1024</a> %H A164885 <a href="/index/K#Kaprekar_map">Index entries for the Kaprekar map</a> %Y A164885 Cf. A164884, A163205, A164886, A164887. %Y A164885 In other bases: A164995 (base 3), A165014 (base 4), A165034 (base 5), A165053 (base 6), A165073 (base 7), A165092 (base 8), A165112 (base 9), A151962 (base 10). %K A164885 base,nonn %O A164885 0,3 %A A164885 _Joseph Myers_, Aug 29 2009 %E A164885 Cross-references edited by _Joseph Myers_, Sep 04 2009