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