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