Yesterday, nobody contributed anything. :-(
The official answer is:
floor(1 / abs(floor(2 * x))) + x + 1