login
A081433
Numbers n such that RevBinary(RevDecimal(n))=RevDecimal(RevBinary(n)), where RevDecimal(n) is the decimal reversal of n (A004086) and RevBinary(n) is the binary reversal of n (A030101).
3
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 15, 33, 51, 66, 99, 165, 313, 516, 535, 561, 585, 615, 626, 717, 759, 858, 929, 957, 1241, 1421, 2112, 2482, 2552, 2842, 3579, 4224, 5485, 5845, 6336, 7447, 8448, 9009, 9753, 11051, 12631, 13621, 15011, 15351, 15375
OFFSET
1,3
COMMENTS
A030101(A004086(a(n)))=A004086(A030101(a(n))), A081431(a(n))=A081432(a(n)).
PROG
(Python)
def ok(n): return int(bin(int(str(n)[::-1]))[:1:-1], 2) == int(str(int(bin(n)[:1:-1], 2))[::-1])
print([k for k in range(2**14) if ok(k)]) # Michael S. Branicky, Jan 30 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Mar 20 2003
STATUS
approved