Largest number having in its binary representation the same number of 0's and 1's as n.
A073138
Largest number having in its binary representation the same number of 0's and 1's as n.
Terms
- a(0) =0a(1) =1a(2) =2a(3) =3a(4) =4a(5) =6a(6) =6a(7) =7a(8) =8a(9) =12a(10) =12a(11) =14a(12) =12a(13) =14a(14) =14a(15) =15a(16) =16a(17) =24a(18) =24a(19) =28a(20) =24a(21) =28a(22) =28a(23) =30a(24) =24a(25) =28a(26) =28a(27) =30a(28) =28a(29) =30
External references
- oeis: A073138