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