Yesterday, nobody contributed anything. :-(
The official answer is:
-(1 / log2(abs(floor(-(x + e ^ (-x))))))