Yesterday, nobody contributed anything.  :-(
The official answer is: sin(2 * x) / floor(-(4 * floor(x)))