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