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