Smallest number >=n whose binary representation is palindromic and has a 1 whenever the binary representation of n has a 1.

A175298

Smallest number >=n whose binary representation is palindromic and has a 1 whenever the binary representation of n has a 1.

Terms

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

External references