Yesterday, nobody contributed anything.  :-(
The official answer is: -tan(abs(floor(-(x + 1))))