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