%I #5 Mar 30 2012 18:35:25
%S 0,1,2,3,1,2,3,4,5,6,1,2,3,4,2,3,4,5,3,4,5,6,1,2,3,4,2,3,1,2,3,4,2,3,
%T 4,5,6,7,2,3,4,5,3,4,5,6,1,2,3,4,2,3,1,2,3,4,5,6,1,2,3,4,2,3,1,2,3,4,
%U 2,3,4,5,3,4,5,6,1,2,3,4,2,3,4,5,6,7,2,3,4,5,3,4,5,6,1,2,3,4,2,3,1,2,3,4,5,6,1,2
%N a(0) = 0; a(n) = a(n/2)/2 if n = a(n/2) = 0 (mod 2); a(n) = a(n-1)+1 otherwise.
%K nonn
%O 0,3
%A _David W. Wilson_
%E Bounded, maximum is a(37) = 7.