|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
COMMENTS
|
|
|
LINKS
|
|
|
PROG
|
(Python)
def ok(n): return int(bin(int(str(n)[::-1]))[:1:-1], 2) == int(str(int(bin(n)[:1:-1], 2))[::-1])
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|