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