OFFSET
1,2
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 10, the Elias delta code for 10 is '11000010' and after interchanging the 0's and 1's it becomes '00111101'. Now, 111101_2 = 61_10. So, a(10) = 61.
PROG
(Python)
def a(n):
....s=""
....for i in A281150(n):
........if i=="1":
............s+="0"
........else:
............s+="1"
....return int(s, 2)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Indranil Ghosh, Jan 19 2017
STATUS
approved