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 A135542 #12 Oct 19 2016 03:04:51 %S A135542 1,3,2,7,4,5,3,15,8,9,5,11,6,7,4,31,16,17,9,19,10,11,6,23,12,13,7,15, %T A135542 8,9,5,63,32,33,17,35,18,19,10,39,20,21,11,23,12,13,7,47,24,25,13,27, %U A135542 14,15,8,31,16,17,9,19,10,11,6,127,64,65,33,67,34,35,18,71,36,37,19,39,20,21 %N A135542 Guy Steele's sequence GS(6,4) (see A135416). %H A135542 G. C. Greubel, <a href="/A135542/b135542.txt">Table of n, a(n) for n = 1..1000</a> %F A135542 a(n) = A135533(3*2^A000523(n) - 1 - n). - _Don Knuth_, Mar 01 2008 %p A135542 GS(6,4,200); [see A135416]. %t A135542 i = 6; j = 4; Clear[a]; a[1] = 1; a[n_?EvenQ] := a[n] = {0, 1, a[n/2], a[n/2]+1, 2*a[n/2], 2*a[n/2]+1}[[i]]; a[n_?OddQ] := a[n] = {0, 1, a[(n-1)/2], a[(n-1)/2]+1, 2*a[(n-1)/2], 2*a[(n-1)/2]+1}[[j]]; Array[a, 78] (* _Jean-François Alcover_, Sep 12 2013 *) %Y A135542 Cf. A135416. %K A135542 nonn %O A135542 1,2 %A A135542 _N. J. A. Sloane_, based on a message from Guy Steele and _Don Knuth_, Mar 01 2008