a(n) = max_{ 1 <= i <= n-1 } min{ wt(i), wt(n-i) }, where wt() = A000120() is the binary weight function; a(1) = 0 by convention.

A138033

a(n) = max_{ 1 <= i <= n-1 } min{ wt(i), wt(n-i) }, where wt() = A000120() is the binary weight function; a(1) = 0 by convention.

Terms

    a(0) =0a(1) =1a(2) =1a(3) =1a(4) =1a(5) =2a(6) =1a(7) =2a(8) =2a(9) =2a(10) =2a(11) =2a(12) =2a(13) =3a(14) =2a(15) =2a(16) =2a(17) =3a(18) =2a(19) =3a(20) =3a(21) =3a(22) =2a(23) =3a(24) =3a(25) =3a(26) =3a(27) =3a(28) =3a(29) =4

External references