Yesterday, the best answer is: log2(x/(x-1))+1. (Contributed by fire. Good Job!) fire solved the puzzle at 17:37:49.036; length: 31