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 A001202 #19 Sep 08 2022 08:44:28 %S A001202 0,1,10,2,100,11,20,3,1000,101,110,12,200,21,30,4,10000,1001,1010,102, %T A001202 1100,111,120,13,2000,201,210,22,300,31,40,5,100000,10001,10010,1002, %U A001202 10100,1011,1020,103,11000,1101,1110,112,1200,121,130,14,20000,2001,2010 %N A001202 a(1)=0, a(2n) = a(n)+1, a(2n+1) = 10*a(n+1). %H A001202 T. D. Noe, <a href="/A001202/b001202.txt">Table of n, a(n) for n = 1..8192</a> %t A001202 Clear[t]; t[1] = 0; t[n_] := t[n] = If[Mod[n, 2] == 0, t[n/2] + 1, 10*t[(n + 1)/2]]; Table[t[n], {n, 2^8}] (* _T. D. Noe_, Jun 26 2012 *) %o A001202 (Magma) [n eq 1 select 0 else IsEven(n) select Self(n div 2)+1 else 10*Self((n+1) div 2): n in [1..60]]; // _Bruno Berselli_, Mar 07 2013 %K A001202 nonn,easy %O A001202 1,3 %A A001202 _N. J. A. Sloane_ %E A001202 Explanation (and correction) supplied by Jay Coskey (jmc(AT)tera.com) 8/97.