%I #12 Oct 19 2016 03:04:51
%S 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 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 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 Guy Steele's sequence GS(6,4) (see A135416).
%H G. C. Greubel, <a href="/A135542/b135542.txt">Table of n, a(n) for n = 1..1000</a>
%F a(n) = A135533(3*2^A000523(n) - 1 - n). - _Don Knuth_, Mar 01 2008
%p GS(6,4,200); [see A135416].
%t 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 Cf. A135416.
%K nonn
%O 1,2
%A _N. J. A. Sloane_, based on a message from Guy Steele and _Don Knuth_, Mar 01 2008