OFFSET
1,3
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