I have the following coordinates:
( 1, 1)
( 2, 1)
( 3, 3)
( 4, 1)
( 5, 3)
( 6, 5)
( 7, 7)
( 8, 1)
( 9, 3)
(10, 5)
(11, 7)
(12, 9)
(13,11)
(14,13)
(15,15)
...
...
etc.
basically: the y values are all odd numbers in ascending order but they start over from 1 if the next value exceeds the value of x.
Here is a graph:

You might observe that $f(2^n)=1$ and $f(2^n+k)=2k+1$ if $0 \le k \lt 2^n$, though you might want to prove it.
So consider whether you can define $k=x-2^{\lfloor \log_2 x \rfloor}$ and so $$f(x)=2x-2^{1+\lfloor \log_2 x \rfloor}+1.$$