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