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