OFFSET
1,2
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 10, the Elias omega code for n is '1110100', which after interchanging the 1's and 0's becomes '0001011'. Now, 1011_2 = 11_10. So, a(10) = 11.
PROG
(Python)
def a(n):
....s=""
....for i in A281193(n):
........if i=="1":
............s+="0"
........else:
............s+="1"
....return int(s, 2)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Indranil Ghosh, Jan 21 2017
STATUS
approved