%I #3 Mar 30 2012 18:50:45
%S 1,0,0,1,2,3,4,3,4,4,5,4,5,2,2,6,7,4,4,4,4,2,2,4,4,2,2,16,17,18,19,5,
%T 5,4,4,10,11,12,13,14,15,16,17,32,33,34,35,22,23,24,25,40,41,42,43,16,
%U 16,14,14,13,13,12,12,34,35,36,37,42,43,44,45,39,40,40,41,39,40,38,39,37
%N a(n) = number of earlier terms greater than a(floor(n/2)); a(1)=1.
%C a(2*n+1) - a(2*n) <= 1.
%K nonn
%O 1,5
%A _Reinhard Zumkeller_, Sep 19 2004