editing
approved
editing
approved
Alois P. Heinz, <a href="/A175298/b175298.txt">Table of n, a(n) for n = 0..16383</a>
approved
editing
editing
approved
editing
approved
0, 1, 3, 3, 5, 5, 7, 7, 9, 9, 15, 15, 15, 15, 15, 15, 17, 17, 27, 27, 21, 21, 31, 31, 27, 27, 27, 27, 31, 31, 31, 31, 33, 33, 51, 51, 45, 45, 63, 63, 45, 45, 63, 63, 45, 45, 63, 63, 51, 51, 51, 51, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, 65, 65, 99, 99, 85, 85, 119, 119, 73
1,2
0,3
Edited with new name and offset by N. J. A. Sloane, Dec 08 2015
approved
editing
editing
approved
This is the binary next-palindrome function, the base-2 analog of A262038. - _N. J. A. Sloane_, Dec 08 2015
Edited with new name by N. J. A. Sloane, Dec 08 2015
approved
editing
editing
approved
Convert n to binary. OR each respective digit of binary n and binary A030101(n), where A030101(n) is the reversal of the order of the digits in the binary representation of n (given in decimal). a(n) is the decimal value of the result.
Smallest number >=n whose binary representation is palindromic and has a 1 whenever the binary representation of n has a 1.
Old name: "Convert n to binary. OR each respective digit of binary n and binary A030101(n), where A030101(n) is the reversal of the order of the digits in the binary representation of n (given in decimal). a(n) is the decimal value of the result."
This is the binary next-palindrome function, the base-2 analog of A262038.
Edited by N. J. A. Sloane, Dec 08 2015
approved
editing