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