|
|
A081432
|
|
RevDecimal(RevBinary(n)), where RevDecimal(m) is the decimal reversal of m (A004086) and RevBinary(m) is the binary reversal of m (A030101).
|
|
3
|
|
|
0, 1, 1, 3, 1, 5, 3, 7, 1, 9, 5, 31, 3, 11, 7, 51, 1, 71, 9, 52, 5, 12, 31, 92, 3, 91, 11, 72, 7, 32, 51, 13, 1, 33, 71, 94, 9, 14, 52, 75, 5, 73, 12, 35, 31, 54, 92, 16, 3, 53, 91, 15, 11, 34, 72, 95, 7, 93, 32, 55, 51, 74, 13, 36, 1, 56, 33, 79, 71, 18, 94, 311, 9, 37, 14
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
FORMULA
|
|
|
MATHEMATICA
|
IntegerReverse[IntegerReverse[Range[0, 80], 2]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Oct 03 2017 *)
|
|
PROG
|
(Python)
def a(n): return int(str(int(bin(n)[:1:-1], 2))[::-1])
(PARI) a(n) = fromdigits(Vecrev(digits(fromdigits(Vecrev(binary(n)), 2)))); \\ Michel Marcus, Jan 30 2023
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|