1,3
Express n in binary; then a(n) is the larger of the number of 0s and the number of 1s.
Example: a(17) = 3 because 17 in binary is 10001, which has 3 0s and 2 1s.
a(n) = max( A000120(n), A023416(n) ).
a(n) + A152723(n) = 1+floor(log[2](n)).
Sequence in context: A029348 A070093 A058744 this_sequence A081743 A118377 A023516
Adjacent sequences: A152721 A152722 A152723 this_sequence A152725 A152726 A152727
base,easy,nonn
Frank Ruskey (ruskey(AT)cs.uvic.ca), Dec 11 2008
Search completed in 0.002 seconds