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