Yesterday, nobody contributed anything.  :-(
The official answer is: 2 ^ x * (x - 1) * floor(1 / (1 / x - 1))