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