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