##Python 2, 30 bytes
Python 2, 30 bytes
lambda n:int(bin(n)[3:]+'1',2)
Takes the binary expansion of n and moves the initial 1 to the end.
##Python 2, 30 bytes
lambda n:int(bin(n)[3:]+'1',2)
Takes the binary expansion of n and moves the initial 1 to the end.
Python 2, 30 bytes
lambda n:int(bin(n)[3:]+'1',2)
Takes the binary expansion of n and moves the initial 1 to the end.